Last active
June 30, 2017 08:03
-
-
Save mosbth/bba3e71b5f86394a0d44 to your computer and use it in GitHub Desktop.
To make composer (phpunit) run globally in windows.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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