可以执行下面命令
php -r "readfile(‘https://getcomposer.org/installer‘);" | php
This will install composer to the current directory so that you can use php composer.phar
composer出现问题: Could not open input file: composer.phar
原文:https://www.cnblogs.com/panziwen/p/12159506.html