Jump to content
Sign in to follow this  

Composer Windows下简化操作BAT脚本

Recommended Posts

在linux环境下,可以直接使用 composer install这样的操作,但是在windows里不能这么调用,必须使用 x:\php\php.exe x:\...\composer.phar install这样的操作方式,是不是感觉到太麻烦了?用这个脚本吧。


@echo off
php.exe %~dp0composer.phar %1 %2 %3 %4 %5 %6 %7 %8 %9

然后你就可以在命令行下的任何目录直接调用composer install之类的操作了。

Share this post

Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now
Sign in to follow this  

  • Create New...