Skip to content

Instantly share code, notes, and snippets.

@DavMorr
Created April 16, 2018 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavMorr/1a618a5beb7e12323e87b70e7f817c85 to your computer and use it in GitHub Desktop.
Save DavMorr/1a618a5beb7e12323e87b70e7f817c85 to your computer and use it in GitHub Desktop.

Install Drupal 8 with Composer

There are several ways to install a Dupal 8 site instance with Composer, but the following includes the automated options that I prefer most.

$ composer create-project drupal-composer/drupal-project:8.x-dev [[[ /path/to/site/root/parent ]]] --stability dev --no-interaction

[[[ /path/to/site/root/parent ]]] = the path to the parent directory above the web/docroot of the site.

feature drupal-composer/drupal-project
directory structure web is subdir
installer-paths config yes
repositories config yes
includes drush yes
includes drupal console yes

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment