composer切换国内或国外源

hrs 提交于 2022/04/02 - 14:51 , 周六

把composer的源改成了国内的:

composer config -g repo.packagist composer https://packagist.phpcomposer.com 

改回原来的源:

composer config -g repo.packagist composer https://repo.packagist.org

 

标签