How to Install Composer on Windows 10

Composer is a PHP dependency management tool inspired by node’s npm and ruby’s bundler. It allows you to add PHP libraries on per-project basis. Right now Composer is a market standard for PHP and almost every framework and library are using composer to release their dependecies and packages.

In this tutorial I am going to show you “How to install composer on Windows 10”.

Before installing composer first we need to alter php.ini file. Open php.ini file and remove semi colon in the beginning of the following extensions.

How to install composer on Windows 10

First you have to download the composer.exe file from After downloading run the composer.exe file and follow below steps.

composer installation on setup windows 10

Do not check the Developer mode right now. Because it is your first time you may want to uninstall composer later if anything goes wrong.

composer php exe file path in windows 10

In this step you have to add php.exe path so that composer can check and it’s setting with PHP. I am using XAMPP for my local development and XAMPP is installed oin C: drive in my laptop that’s why it is showing C:\xampp\php\php.exe.

Also Read: How to install Xampp on Local Machine

If you have installed PHP separately in C: drive then your address may be C:\Program Files\PHP\php.ini-production or C:\Program Files\PHP\php.ini

composer proxy url for windows 10

If you want to enter any proxy url you can write it here but right now you do not need any composer proxy settings. So leave ‘Enter proxy url’ blank and click on next button.

composer ready to install on windows 10

installing composer on windows 10

composer restart software

composer setup finish on windows 10

Now press window key + R and type cmd to open command prompt

cmd for command prompt

When command prompt opened, type composer and you will see composer heading and its list of commands just like below. Congratulation you have successfully installed composer on windows 10.

composer installted successfully on windows 10


Posted in PHP

One Reply to “How to Install Composer on Windows 10”

Leave a Reply

Your email address will not be published. Required fields are marked *