Topic
Last updated September 21, 2018

Figuring out how to use the Composer package manager to handle your project's dependencies can be a bit tricky. Using the Drupal Composer Project as a starting point provides you with an opinionated (and Drupal-aware) starting point. This project provides help with many of the common initial project setup tasks including the installation of tools like Drush and Drupal Console, as well as setting the correct file permissions required to actually install Drupal.

Example tasks

  • Use a common scaffold tool for new project setup
  • Leverage Composer to manage all of the dependencies of the codebase
  • Start each new project with the most recent Drush and Drupal Console versions ready to go
  • Manage the Drupal core update process more easily

Confidence

The approach taken by this project is an established best practice in the larger PHP development community, but its adoption in the Drupal community is still emerging.

Drupalize.Me resources

More Guides

We have guides on many Drupal skills and topics.

Explore guides

External resources

  • Drupal Composer Project (github.com)
    • This is the actual repository you can use to get started with a project. The README.md file is an excellent starting point.
  • Using Composer to manage Drupal site dependencies (Drupal.org)
    • Community documentation which compares various options for using Composer to download and manage a Drupal codebase, including using the drupal-composer/drupal-project.