Skip to content

Instantly share code, notes, and snippets.

@mosbth

mosbth/composer.bat

Last active Jun 30, 2017
Embed
What would you like to do?
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