1.安装镜像管理工具-CRM(composer-registry-manager)
composer global require slince/composer-registry-manager ^2.0
2.查看当前镜像列表
composer repo:ls
3.选择镜像
composer repo:use
#或者
composer repo:use cnpkg
4.查看crm命令
composer repo
5.composer更新版本
composer self-update
6.依赖包状态检测
composer status
#或者
composer status -v
7.包依赖性检测
composer depends --link-type=require monolog/monolog
#注意:--link-type: 检测的类型,默认为 require 也可以是 require-dev
8.搜索软件包
composer search monolog
9.全局执行 global
composer global update