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
镜像源
https://tool.lu/pkg/
https://learnku.com/articles/15977/composer-accelerate-and-modify-mirror-source-in-china
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。