php 上安装 composer

php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php

php composer-setup.php

php -r "unlink('composer-setup.php');"

ln -s /path/composer.phar /usr/bin/composer

你可能感兴趣的:(php 上安装 composer)