Is there any way to install Composer globally on Windows?

Sure. Just put composer.phar somewhere like C:\php\composer.phar, then make a batch file somewhere within the PATH called composer.bat which does the following:

@ECHO OFF
php "%~dp0composer.phar" %*

The “%*” repeats all of the arguments passed to the shell script.

Then you can run around doing composer update all ya want!

Leave a Comment