切換國內鏡像源php
composer config -g repo.packagist composer https://packagist.phpcomposer.com
切換國外鏡像源(默認)bash
composer config -g repo.packagist composer https://packagist.org