It automatically activates the composer install command, which downloads Drupal core and its dependencies in the latest stable versions. This command will download the drupal/recommended-project package directly to the my_site_name_dir. You should use following command to install Drupal 8 or 9 core: composer create-project drupal/recommended-project my_site_name_dir It is worth noticing that since Drupal 8.8.0 the template changed from drupal-composer/drupal-project to the actual drupal/recommended-project. Thus, you will be sure that the core dependencies are in line with the official release. To download Drupal 8 or 9 core, you should use the composer template drupal/recommended-project. You can find detailed instructions on how to do this on different operating systems, e.g., Linux, macOS, or Windows there. The first and most important thing is Composer installation on your local machine. Beneath, you will find the essential steps on how to install Drupal using Composer. Now, Composer manages the download process by itself. Drupal Installation with Composer – Step-by-Stepīefore Composer, the most common way to install Drupal was via Drush or Drupal Console. Indeed, those are just a few arguments why Composer is highly recommended for Drupal installation – we can write down more, but it is not the point of this text. It contains all the essential information needed for this process. There is also the official project which eases Drupal installation with Composer. Moreover, it ensures that you have just installed the latest version of each module or theme. Why is it a convenient way to install Drupal 8 or 9? First of all, it enables easy and transparent Drupal and dependencies management – modules, libraries, themes, etc. Why Should You Install Drupal 8 or 9 with Composer?Ĭomposer is a tool that helps manage PHP dependencies. If you want to install its core correctly, you have to meet the particular Drupal version’s requirements. PHP (in a version supported by a particular Drupal release).MySql (or another database server, e.g., MariaDB),.Apache (or another web server, e.g., Nginx),.For the most popular operating systems, the basic stack calls AMP, which is an acronym for: The process demands two basic things – a web server and a database server. If you have decided to build your website on Drupal, you have to prepare accurate conditions for CMS installation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |