

Note that the above command will download the current official release of Drupal. The web root will be 'my_site_name_dir/web'. Your 'my_site_name_dir' will contain files that should be outside of your web root and not accessible by the web server. This will create a project in 'my_site_name_dir' and automatically executes composer install to download the latest stable version of Drupal and all its dependencies. Create a projectįor Drupal 10: composer create-project drupal/recommended-project my_site_name_dirįor Drupal 7: composer create-project drupal-composer/drupal-project:7.x-dev -n my_site_name_dir Other approaches can be found below.įor Drupal 7, use drupal-composer/drupal-project. This template ensures Drupal Core dependencies are the exact same version as the official Drupal release. Please feel free to comment below, your suggestion and problems if you face – we are here to solve your problems.As of the release of Drupal 8.8.0 - the recommend composer template changed from drupal-composer/drupal-project to the officially supported: drupal/recommended-projectįor Drupal 10, use the composer template at drupal/recommended-project. That’s it! I hope this article helped you learn to how to Install Composer On Windows With XAMPP. Then type “composer” and press enter in the terminal you will get following response like in the below image. To open it, press “Win + R” keys on the keyboard, type in “ cmd” and press the “ OK “ button. Click the Next button.ģ) Select php.exe file, click the Next button.Ĥ) No need to add proxy URL, click the Next button to continue.ĥ) Composer setup is ready to install and click the Install button to continue.Ħ) Once you successfully installed the Composer. Now we are ready to install Composer set up.ġ) First go to Download Composer page and click the Composer-Setup.exe link to download Composer for Windows Installer.Ģ) After finished downloading, double-click the Composer-Setup.exe file – it will install the latest composer version whenever it is executed.

Restart your xampp, extension should be enabled after that. Make sure these lines are enable by removing the semicolon ( ) from the start. Note: If you installed latest version of XAMPP (7.2.1 or more) then you don’t need to update in php.ini file, skip this step and you can continue to step first – Download Composer.
