Using Composer

Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. Drupal uses Composer to manage the various libraries that it depends on. Modules can also use Composer to include 3rd party libraries. Drupal site builds can use Composer to manage the various modules the site is composed of. Learn how to use Composer in your Drupal project.

Using Composer with Drupal

Composer can be used to add dependencies to a Drupal project. It can be used in the following ways.

Composer in relation to Drush Make

Learn how to use Composer instead of Drush Make for managing a projects dependencies.

Using Composer to manage Drupal site dependencies

GetComposer.org documents how to install Composer, and how to begin using Composer for dependency management in your project.

Managing dependencies for a contributed project

Managing dependencies for a contributed project

Managing dependencies for a custom project

Managing dependencies for a custom project

Troubleshooting Composer

Troubleshooting Composer

Using packages.drupal.org

Using packages.drupal.org

Related projects

Drupal.org Composer 7.x-1.x-dev

Guide maintainers