Give the gift of Drupal. All merchandise is 50% off through 2016.
Composer Manager allows contributed modules to depend on PHP libraries managed via Composer.
Composer is a command line tool for installing PHP libraries and their dependencies on a per-project basis. Nowadays, all libraries are registered on Packagist and expect to be installed via Composer. See the Composer Getting started page for more information.
How does it work?
Composer expects each project (Drupal installation, in our case) to have a single composer.json file listing all required packages. Composer Manager allows each contributed module to ship with its own composer.json file, listing the module-specific requirements. It then merges the requirements of all found modules into the consolidated composer.json file. This results in a single vendor/ directory shared across all modules which prevents code duplication and version mismatches.
7.x-1.x generates the composer.json inside sites/default/files/composer, while the vendor directory gets downloaded to sites/all/vendor. These locations are configurable.
Drupal 8 ships with a root composer.json file which should be edited to include any module requirements. Composer Manager discovers each module's composer.json file and adds it to the merge-plugin include list. The module requirements are then merged into the core requirements when Composer runs.
The Drupal 8 version of this module is deprecated and no longer needed, due to improvements in Drupal 8.1. Use Composer directly to get the needed modules, which will also download their required libraries.
For more information, see: Using Composer in a Drupal project, Using Composer to install Drupal packages through Drupal.org
- Using Composer Manager to get off the Island Now (7.x-1.x, 8.x-1.0 alphas)
- Managing D8 module dependencies with the new Composer Manager (8.x-1.0-beta1 and later)
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Developer, Drush, Third-party Integration, Utility
- Reported installs: 10,519 sites currently report using this module. View usage statistics.
- Downloads: 157,072
- Last modified: May 31, 2016
- Stable releases are covered by the security advisory policy.
Look for the shield icon below.