Is there any way to install Composer globally on Windows?

后端 未结 13 1558
予麋鹿
予麋鹿 2020-11-30 18:32

I\'ve read the global installation documentation for Composer, but it\'s for *nix systems only:

curl -s https://ge         


        
13条回答
  •  醉酒成梦
    2020-11-30 19:09

    A bit more generic if you put the batch in the same folder as composer.phar:

    @ECHO OFF
    SET SUBDIR=%~dp0
    php %SUBDIR%/composer.phar %*
    

    I'd write it as a comment, but code isn't avail there

提交回复
热议问题