Ubuntu下安装Composer

下载:

curl -sS https://getcomposer.org/installer | php

安装:

/usr/bin/php composer.phar --version

设置全局命令

sudo mv composer.phar /usr/local/bin/composer

查看是否安装成功:最后离开当前目录

composer -version