阿里雲鏡像官網: https://developer.aliyun.com/...composer
全局配置(推薦) 全部項目都會使用該鏡像地址:ui
composer config -g repo.packagist composer https://mirrors.aliyun.com/co...
取消配置:阿里雲
composer config -g --unset repos.packagist
項目配置 僅修改當前工程配置,僅當前工程可以使用該鏡像地址:調試
composer config repo.packagist composer https://mirrors.aliyun.com/co...
取消配置:get
composer config --unset repos.packagist
調試 composer 命令增長 -vvv 可輸出詳細的信息,命令以下:require
composer -vvv require nesbot/carbon配置