修改下载镜像,改成国内镜像
#查看镜像地址
composer config -g -l repo.packagist
中国全量镜像
composer config -g repo.packagist composer https://packagist.phpcomposer.com
阿里云 Composer 全量镜像:
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
腾讯云地址:
composer config -g repo.packagist composer https://mirrors.cloud.tencent.com/composer/
改回去:
composer config -g --unset repos.packagist
#安装方法
Entrypoint.sh
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
composer config -g repo.packagist composer https://mirrors.cloud.tencent.com/composer/
#composer config --global process-timeout 900
composer install --no-dev -o
项目里composer.json修改
"repositories": {
"packagist": {
"type": "composer",
"url": "https://packagist.phpcomposer.com"
}
}
composer require aws/aws-sdk-php
https://docs.min.io/docs/how-to-use-aws-sdk-for-php-with-minio-server.html
https://github.com/aws/aws-sdk-php
csdn介绍
https://blog.csdn.net/WZP_LOVE/article/details/115208900
composer install --ignore-platform-reqs
composer install --ignore-platform-reqs --no-plugins
或者
composer update --ignore-platform-reqs
composer update --no-plugins
composer update --prefer-stable --prefer-lowest
composer update --no-dev --prefer-lowest --prefer-stable --no-autoloader 最低稳定版
tencentcloud-sdk-php安装问题
composer require tencentcloud/tencentcloud-sdk-php
再update
composer update