Composer 使用阿里云的源

Auth:admin Date:2024-09-17 16:54:08 Cat:技术笔记


(1). 配置只在当前项目生效

composer config repo.packagist composer https://mirrors.aliyun.com/composer/

取消当前项目配置

composer config --unset repos.packagist

(2)配置全局生效

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

取消全局配置

composer config -g --unset repos.packagist

标签: