This is a detailed step by step tutorial on how to install composer on windows
Composer is an application-level package manager for the PHP programming language that provides a standard format for managing dependencies of PHP software and required libraries.
Alright, Let’s dive into steps.
# Download the installer file
Installing composer on windows is easy and requires downloading an executable file from the composer website, Download link: https://getcomposer.org/Composer-Setup.exe, or can be downloaded from the official download page: https://getcomposer.org/download/
# Run the installer file
Step 1: First step of installer, where composer gives out some information. Click on Next >
Step 2: In the next step we need to specify the location of php in our system. Since I am using XAMPP my php.exe is located in
Click Next > to continue, Composer will check if the specified path for
php.exe is correct.
Step 3: In the next step, Composer installer needs to know if we use proxy for our internet service, since it needs to download necessary dependencies from the internet.
Most probably you will leave this blank. If you are using proxy, then provide the necessary details.
Click Next > to continue.
Step 4: In the next step, Composer installer asks us to review the settings.
Review and Click on Install.
Step 5: Composer will now download the necessary dependencies from the internet.
Step 6: Once the installation is completed. Composer gives details about changes in environment variables in our Windows. It also gives of steps needs to be taken in order to run composer command from command-line.
Click Next >
Step 7: Installation is now complete.
That’s It, Close your command prompt if already open and open it again.
Check if composer is installed correctly. Run command
You should see composer version output as the result.