Sure. Just put composer.phar somewhere like C:phpcomposer.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!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…