composer镜像
Posted mi-autumn
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了composer镜像相关的知识,希望对你有一定的参考价值。
基础使用
//全局
composer config -g repo.packagist composer https://packagist.laravel-china.org
//局部
composer config repo.packagist composer https://packagist.laravel-china.org
//取消
composer config -g --unset repos.packagist
//遇到问题输出调试信息
composer -vvv create-project laravel/laravel blog
composer -vvv require psr/log
全量镜像
//dont know 尊云赞助的
composer config -g repos.packagist composer https://php.cnpkg.org
//laravel-china laravel-china 又拍云赞助的 19年9月多停止服务
composer config -g repo.packagist composer https://packagist.laravel-china.org
//华为云 非全量镜像
composer config -g repo.packagist composer https://repo.huaweicloud.com/repository/php/
//阿里云 zlib_decode有错误 好像不影响
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
其他镜像
//上海交大
composer config -g repos.packagist composer https://packagist.mirrors.sjtug.sjtu.edu.cn
以上是关于composer镜像的主要内容,如果未能解决你的问题,请参考以下文章