AslroNx's World

composer 安装和升级

2021-1-6 aslronx

#第一步
php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');"


#第二步
php composer-setup.php


#第三步
php -r "unlink('composer-setup.php');"


#第四步
sudo mv composer.phar /usr/local/bin/composer


#升级到1.x
composer self-update --1


#升级到2.x
composer self-update --2

发表评论: