composer 配置
阿里云 Composer 全量镜像
https://developer.aliyun.com/composer
https://www.cnblogs.com/abcdefghi123/p/15670845.html
换http源,更改配置不要使用https加密连接
composer config -g repo.packagist composer http://packagist.phpcomposer.com
composer config -g secure-http false
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
composer config -g -l
诊断
composer diagnose
compose 安装
curl -sS https://getcomposer.org/installer | php # 安装
mv composer.phar /usr/local/bin/composer #将composer.phar文件移动到bin目录以便全局使用composer命令
composer config -g repo.packagist composer https://packagist.phpcomposer.com #切换国内源
composer # 验证
# 常用操作
/usr/bin/composer update
/usr/bin/composer install
php -d memory_limit=-1 /usr/bin/composer install
多个php版本的composer使用
wget https://getcomposer.org/download/1.6.5/composer.phar
composer require laravel/passport # 默认php版本
php72 composer.phar require laravel/passport # 指定版本
镜像源
https://tool.lu/pkg/
https://learnku.com/articles/15977/composer-accelerate-and-modify-mirror-source-in-china
Composer 如何卸载某个扩展或者删除某个包
https://blog.csdn.net/qq_40176206/article/details/107727135