![]() ![]() ![]() There are other popular "templates" for starting a new Drupal application with Composer, including drupal-composer/drupal-project. Note: As of Drupal 8.8.0, the recommended Composer template is the "officially supported" drupal/recommended-project. After that, some/project will effectively never influence or interact with your new project again. ![]() For instance, the composer.json file in some/project will become the initial composer.json file in your new project. Instead, some/project will merely be used as a starting point. Your new project will not depend on (require) some/project. When you execute composer create-project some/project, it will clone some/project and use it as a template for your new project. Composer's create-project command is intended to do exactly that. "Composerize" an existing Drupal applicationĪ best practice to create a brand new Drupal application using Composer is to start from a template.Important: If you need to update your already "composerized" site to Drupal 8.8.x or higher, and you used the drupal-composer/drupal-project template to create your application originally, see this tutorial: Update Drupal from Versions Prior to 8.8.x using Composer. For existing Drupal applications, execute all commands from your repository root directory.For existing Drupal applications, configure your composer.json file to work with a Drupal application, as per instructions in Composer Configuration for Drupal.Use composer self-update to update Composer. GoalĬreate a new Composer-managed Drupal application and install some Drupal modules and themes. Convert an existing application to use Composerīy the end of this tutorial you should know how to use Composer to install, and update, Drupal modules and themes.Install and update Drupal projects (core, modules, themes, profiles, etc.) using Composer.Cover step-by-step instructions for performing common Composer tasks for a Drupal application.When managing your Drupal project with Composer you'll use Composer commands to download (require) modules and themes that you want to install, as well as issuing commands to keep those modules and themes up-to-date when new versions are released. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |