安装:
a. windows:
a-1. 下载:
git clone https://github.com/orderLee/composer.git

a-2. 移动:
将win下的文件移动到php所在目录

b. linux:
b-1. 下载:
git clone https://github.com/orderLee/composer.git
mv composer/linux/composer /bin/
c. 修改composer的镜像为国内镜像:
composer config -g repo.packagist composer https://packagist.phpcomposer.com
d. 诊断:
composer diagnose

d. 添加pubkey:
地址:https://composer.github.io/pubkeys.html
composer self-update --update-keys

