Jamers Posted March 21, 2019 Report Share Posted March 21, 2019 在linux环境下,可以直接使用 composer install这样的操作,但是在windows里不能这么调用,必须使用 x:\php\php.exe x:\...\composer.phar install这样的操作方式,是不是感觉到太麻烦了?用这个脚本吧。 把这个文件composer.bat和composer.phar放在同一个目录下,然后设置一下自动搜索PATH,包含PHP的路径以及新增的这个目录(可以同时放到同一个目录下)。 @echo off php.exe %~dp0composer.phar %1 %2 %3 %4 %5 %6 %7 %8 %9 然后你就可以在命令行下的任何目录直接调用composer install之类的操作了。 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now