composer

作者: 淡蓝海域 分类: php 发布时间: 2020-11-05 09:13

查看当前版本

composer --version   or  composer -v

更新版本(慎用)

 composer selfupdate   或者 composer self-update

回退composer 版本

composer self-update --rollback

清理缓存

composer clearcache

查看Composer配置中的镜像地址:

composer config -gl

修改镜像地址为中国镜像:

composer config -g repo.packagist composer Packagist / Composer

其它镜像

#阿里云
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
#腾讯云
composer config -g repo.packagist composer PHP Composer

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!