1. 程式人生 > >linux下安裝composer

linux下安裝composer

sel setup com highlight ack onf bin gist pos

//安裝composer
php -r "copy(‘https://install.phpcomposer.com/installer‘, ‘composer-setup.php‘);"
php composer-setup.php
sudo mv composer.phar /usr/local/bin/composer
//切換中國鏡像
composer config -g repo.packagist composer https://packagist.phpcomposer.com
//更新composer
composer selfupdate

  

linux下安裝composer