Introduction
Actually, this article is a simple article which is showing about how to install composer in Microsoft Windows. The main purpose for installing composer in this context is to be able to create a new Laravel-based framework project. Since the environment for creating the project is in Microsoft Windows, the installation of the composer is also in Microsoft Windows.
Composer Installation in Microsoft Windows
The step for installing Composer exist in the following sequence :
-
First of all, the step is just to download the composer installer file. After searching it in Google search engine using the keyword of ‘composer install windows’, the result is displaying the URL for the location. It exist in the link of ‘https://getcomposer.org/download/’ in this link.
-
Next, following after accessing the page, just download it where it exist in the link of ‘https://getcomposer.org/Composer-Setup.exe’ in this link.
-
Soon after the download process is finish, just execute or double click the file. The installation process will start as in the following image :
Just choose and leave it as is with the selected installation mode ‘Install for all users (recommended). Click it and it will direct it to the next step of installation process.
-
The next step is in the following image :
Since the installation in this context is just for the development purpose, just click the radio buton with the label of ‘Developer Mode’ as in the following image :
Following after, click the Next button to proceed on the installation.
-
Soon after, the following image for the continuation of the process will appear :
Basically, the image above is showing process for defining the installation path for composer installation. The installation path by default will point out ‘C:\composer’. Just leave it as is or choose another different location for the installation path. Click Next button after finishing on defining the installation path and continue on the installation process.
-
After defining the installation path, the following process will start as exist in the image below :
Basically, it is step for locating the PHP program file. Actually, in order to keep it simple, it is using the PHP program file exist in the XAMPP portable installation. Just visit the following link to know more about XAMPP. Basically, it is a tool which has PHP program file bundled within it. Do not forget to check the radio button with the label of ‘Add this PHP to your path?’. It is useful for executing PHP program file in any path as it will exist in any path in the command line as follows :
After choosing the PHP program file which in this context is exist in the XAMPP portable installation path, just click Next button to continue on the installation.
-
So, the next part of the installation exist in the following image :
Basically, it is a setting asking for additional proxy connection if available. It is very important because composer is relying on internet connection to download necessary files for creating and building project or application source code. If there is no additional proxy setting, just click the Next button to continue on the installation process.
-
Finally, the installation process will start by the appearance of the following image displaying the summary for the installation :
Just click the Install button in order to start the installation process. The process will appear in the following image :
If the process for the installation is finish, the following dialog box will appear in the image follows :
Just click the Next button, then it will display the last window box for informing the successful process of the installation as follows :
Testing Composer After Installation in Microsoft Windows
After successfully install composer in Microsoft Windows, just try it. In order to try it, the following is the step for executing it :
-
First of all, just execute the Command Prompt as in the following image :
-
Next, type composer in the command line. The installation of composer tool or composer program file is a success if the following output appear in the image :