执行: composer config -g repo.packagist composer https://packagist.phpcomposer.com
composer config -g repo.packagist composer https://packagist.phpcomposer.com
当自己开发一个组件的话,因为同步原因,中国源大概会晚5~10分钟,所以自己开发的时候最好切回外国的.....
composer config -g repo.packagist composer https://packagist.org/
http://pkg.phpcomposer.com/