安装:
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.gitmv 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.htmlcomposer self-update --update-keys


使用:
a. 安装包:

b. 使用包:

c. 更新:

composer update

d. 删除:

composer remove orderlee/orderlee

e. 搭建框架:

composer create-project orderlee/orderlee

f. 取消设置的镜像:

composer config -g --unset repos.packagist