使用 Composer 镜像加速配置
Composer 常用命令
composer install
根据 composer.json 里面的配置安装组件
--no-dev
跳过 require-dev 字段中列出的包
composer update
更新组件 composer dumpautoload
把自动加载写入自动加载的配置文件中 composer require predis/predis 1.0.*
安装组件,并指定版本 composer remove predis/predis
移除依赖
Composer 其他命令
composer -v
查看当前版本 composer selfupdate
升级版本 composer config -gl
查看 composer 配置 composer config -g --unset repos.packagist
取消全局配置 composer config --unset repos.packagist
取消当前项目配置 composer clear-cache
清除本地缓存 composer update nothing
刷新 composer.lock 文件 composer -vvv predis/predis
打印调错信息 composer info | grep predis
模糊匹配查看是否安装 predis
包