O'Reilly logo

Drupal 8 Blueprints by Alex Burrows

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Composer with Drupal

To get started with using Composer with Drupal, create a new directory and then head over to that directory within the command line.

The command used to create a new Drupal project using composer is as follows:

composer create-project drupal-composer/drupal-project:8.x-dev some-dir --stability dev --no-interaction 

What this does is create a new directory and set up our Drupal site structure. We will now execute the preceding command, and then Composer will run tasks to get all the packages needed. This is illustrated here:

Fig 1.0: Composer downloading dependencies for Drupal

In the preceding screenshot, we can ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required