Skip to content

Instantly share code, notes, and snippets.

@JCook21
Created February 6, 2012 14:02
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save JCook21/1752267 to your computer and use it in GitHub Desktop.
Save JCook21/1752267 to your computer and use it in GitHub Desktop.
Quick Batch file to add a 'composer' command to windows.
@echo off
if "%PHPBIN%" == "" set PHPBIN=C:\path\to\PHP\executable\dir\.\php.exe
"%PHPBIN%" "C:\path\to\composer.phar" %*
@eliasdelatorre
Copy link

Thanks for the simple file, I was having trouble finding a way of calling composer under Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment