How to Install Composer in Microsoft Windows

Posted on

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 :

  1. 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.

  2. 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.

  3. Soon after the download process is finish, just execute or double click the file. The installation process will start as in the following image :

    How to Install Composer in Microsoft Windows
    How to Install Composer in Microsoft Windows

    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.

  4. The next step is in the following image :

    How to Install Composer in Microsoft Windows
    How to Install Composer in Microsoft Windows

    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 :

    How to Install Composer in Microsoft Windows
    How to Install Composer in Microsoft Windows

    Following after, click the Next button to proceed on the installation.

  5. Soon after, the following image for the continuation of the process will appear :

    How to Install Composer in Microsoft Windows
    How to Install Composer in Microsoft Windows

    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.

  6. After defining the installation path, the following process will start as exist in the image below :

    How to Install Composer in Microsoft Windows
    How to Install Composer in Microsoft Windows

    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 :

    How to Install Composer in Microsoft Windows
    How to Install Composer in Microsoft Windows

    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.

  7. So, the next part of the installation exist in the following image :

    How to Install Composer in Microsoft Windows
    How to Install Composer in Microsoft Windows

    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.

  8. Finally, the installation process will start by the appearance of the following image displaying the summary for the installation :

    How to Install Composer in Microsoft Windows
    How to Install Composer in Microsoft Windows

    Just click the Install button in order to start the installation process. The process will appear in the following image :

    How to Install Composer in Microsoft Windows
    How to Install Composer in Microsoft Windows

    If the process for the installation is finish, the following dialog box will appear in the image follows :

    How to Install Composer in Microsoft Windows
    How to Install Composer in Microsoft Windows

    Just click the Next button, then it will display the last window box for informing the successful process of the installation as follows :

    How to Install Composer in Microsoft Windows
    How to Install Composer in Microsoft Windows

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 :

  1. First of all, just execute the Command Prompt as in the following image :

    How to Install Composer in Microsoft Windows
    How to Install Composer in Microsoft Windows
  2. 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 :

    How to Install Composer in Microsoft Windows
    How to Install Composer in Microsoft Windows

Leave a Reply