Site icon WDB24

How to Install Composer on Windows 10

composer featured image
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.

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.

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

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.

Now press window key + R and type cmd to open 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.

Exit mobile version