1.下载composer https://getcomposer.org/download/ Windows 安装版本下载地址: https://getcomposer.org/Composer-Setup.exe

2.修改镜像地址 http://pkg.phpcomposer.com/ 通过命令行方式修改 composer config -g repo.packagist composer https://packagist.phpcomposer.com

3.在命令行中使用 composer命令