Skip to content

Instantly share code, notes, and snippets.

@DavMorr
Created April 16, 2018 18:22
Show Gist options
  • Save DavMorr/1a618a5beb7e12323e87b70e7f817c85 to your computer and use it in GitHub Desktop.
Save DavMorr/1a618a5beb7e12323e87b70e7f817c85 to your computer and use it in GitHub Desktop.

Revisions

  1. DavMorr created this gist Apr 16, 2018.
    22 changes: 22 additions & 0 deletions Install Drupal 8 with Composer.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    # 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.

    ```bash
    $ 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:
    * https://www.drupal.org/docs/develop/using-composer/using-composer-to-manage-drupal-site-dependencies?d8install=d8install#d8install
    * https://www.drupal.org/docs/user_guide/en/installation-chapter.html
    * https://www.drupal.org/docs/8/install/step-2-install-dependencies-with-composer