composer 添加国内镜像

 

选项一、全局配置(推荐)

$ composer config -g repo.packagist composer https://packagist.laravel-china.org

选项二、单独使用

如果仅限当前工程使用镜像,去掉 -g 即可,如下:

$ composer config repo.packagist composer https://packagist.laravel-china.org

https://packagist.laravel-china.org/

最新回复(0)
/jishucBOzC_2Br96XDI2ET9pMUYa0eqAP4lsXSYSKuzKVK2JXQ_3D4858498
8 简首页