Composer 安装

2020-02-17  本文已影响0人  西集

安装方式

1. Linux在线命令安装

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

2. 直接下载安装

最新版下载地址:https://getcomposer.org/composer.phar

wget -c https://getcomposer.org/composer.phar
mv composer.phar /usr/local/bin/composer
chmod +x /usr/local/bin/composer

3. 升级

composer self-update

Packagist 中国镜像

composer config -g repo.packagist composer https://packagist.phpcomposer.com
composer config repo.packagist composer https://packagist.phpcomposer.com
上一篇下一篇

猜你喜欢

热点阅读