ComposerX 1.0.0-beta1

ComposerX 1.0.0-beta1

Released Aug 19, 2013 by pbowyer

This Extra allows you to use any of the lovely libraries packaged using Composer in your MODX project.

Download 190kb (914 downloads)
Downloads: 912
License: MIT
Requires Revolution 2.2.x or greater
Compatible up to Revolution 2.2.x
Supports mysql,sqlsrv

This Extra allows you to use any of the lovely libraries packaged using Composer in your MODX project.

How does it do that?

It integrates Composer's autoloader into MODX via a plugin.

Why is it useful?

  • It's useful if you're familiar with a 3rd-party system you want to use within MODX or if you're integrating existing code.
  • Other extra authors will bind it useful to use as a sub-package (needs more work)

Until we've used it more we aren't entirely sure :) Consider it a proof of concept for now.

Do show us how you're using it!

Installation Instructions

Install via the Package Manager, which will set up the plugin for you.

Afterwards, navigate to `core/components/composerx` and edit `composer.json` to include the modules you want to install (Packagist is a great source of Composer packages). You can delete the existing (sample) contents of this file.

Then from the command-line run:

    $ php composer.phar update

To use libraries installed using Composer in your snippets/plugins, you need to apply this patch to MODX. Hopefully it will be included in Revolution 2.3.