composer是 PHP 用来管理依赖(dependency)关系的工具
Terminal下执行以下命令
# 安装curl
sudo apt-get install curl
# 下载installer
sudo curl -sS https://getcomposer.org/installer | sudo php -d detect_unicode=Off
# 将composer.phar移动到/usr/local/bin/并且重命名为composer
sudo mv composer.phar /usr/local/bin/composer
# 修改composer.phar执行权限
cd /usr/local/bin/
sudo chmod a+x composer
# 升级
sudo composer self-update
至此,Composer安装完成
viencoding.com版权所有,允许转载,但转载请注明出处和原文链接: https://viencoding.com/article/57