You are here

README.txt in Composer Manager 8

Composer Manager allows contributed modules to depend on PHP libraries managed via Composer.

Installation
------------
- Install the Composer Manager module.
- Run the module's init.php script on the command line
  (`php scripts/init.php` from inside the composer_manager module directory).
  This registers the module's Composer command for Drupal core.
- Run `composer drupal-update` from the root of your Drupal directory.

Workflow
--------
- Download the desired modules (such as Commerce).
- Run `composer drupal-update` from the root of your Drupal directory.
  This rebuilds composer.json and downloads the new module's requirements.
- Install the modules.

If you're using Drush to download/install modules, then composer drupal-update
will be run automatically for you after drush dl completes.

Documentation: https://www.drupal.org/node/2405789

File

README.txt
View source
  1. Composer Manager allows contributed modules to depend on PHP libraries managed via Composer.
  2. Installation
  3. ------------
  4. - Install the Composer Manager module.
  5. - Run the module's init.php script on the command line
  6. (`php scripts/init.php` from inside the composer_manager module directory).
  7. This registers the module's Composer command for Drupal core.
  8. - Run `composer drupal-update` from the root of your Drupal directory.
  9. Workflow
  10. --------
  11. - Download the desired modules (such as Commerce).
  12. - Run `composer drupal-update` from the root of your Drupal directory.
  13. This rebuilds composer.json and downloads the new module's requirements.
  14. - Install the modules.
  15. If you're using Drush to download/install modules, then composer drupal-update
  16. will be run automatically for you after drush dl completes.
  17. Documentation: https://www.drupal.org/node/2405789