Skip to content

Instantly share code, notes, and snippets.

@mosbth
Last active June 30, 2017 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mosbth/bba3e71b5f86394a0d44 to your computer and use it in GitHub Desktop.
Save mosbth/bba3e71b5f86394a0d44 to your computer and use it in GitHub Desktop.
To make composer (phpunit) run globally in windows.
@ECHO OFF
REM Save this file in the same directory as you phar-file.
REM For composer.phar, save this file as composer.bat
REM For phpunit.phar, save this file as phpunit.bat
REM
REM Read how the filename is created:
REM https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/percent.mspx?mfr=true
REM
REM php "%~dp0composer.phar" %*
php "%~dp0%~n0.phar" %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment