Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In https://www.drupal.org/docs/official_docs/en/_local_development_guide.html we provide a command to use composer to install Drupal:
composer create-project drupal-composer/drupal-project:8.x-dev --stability dev --no-interaction $SITE_NAME
As of Drupal core 8.8 there's a new drupal/recommended-project composer template. And while drupal-composer/drupal-project still works we should probably recommend the official one in this guide.
composer create-project drupal/recommended-project $SITE_NAME
Related change record: https://www.drupal.org/node/3082474
Comment | File | Size | Author |
---|---|---|---|
#2 | 3112045-2-composer-template.patch | 584 bytes | eojthebrave |
Comments
Comment #2
eojthebraveHere's a patch to update to the new command.
I wonder if we should also create a new 8.x-8.x-dev branch of this guide since these changes are specific to Drupal ^8.8?
Comment #3
Amber Himes MatzPatch in #2 looks good to me.
Comment #4
Amber Himes MatzComment #5
eojthebraveThanks @Amber Himes Matz.
I create a new 8.x-8.x branch of this project, and committed this patch to that branch.