webguosai / flysystem-qiniu
Flysystem adapter for the Qiniu storage.
v1.0.0
2024-10-11 06:57 UTC
Requires
- php: >=8.1
- ext-curl: *
- hyperf/filesystem: ^3.1
- league/flysystem: ^3.29
- overtrue/flysystem-qiniu: ^3.2
- qiniu/php-sdk: ^7.13
Requires (Dev)
- symfony/var-dumper: ^5.3
README
解决七牛云在hyperf框架的docker环境中,不能上传1M及以上大小的文件的问题
运行环境
- php >= 8.1
- composer
- hyperf
安装
composer require webguosai/flysystem-qiniu -vvv
修改配置
- \config\autoload\file.php
'qiniu' => [ 'driver' => \Webguosai\Flysystem\Qiniu\QiniuAdapterFactory::class, 'accessKey' => env('QINIU_ACCESS_KEY'), 'secretKey' => env('QINIU_SECRET_KEY'), 'bucket' => env('QINIU_BUCKET'), 'domain' => env('QINIU_DOMAIN'), 'public_url' => env('QINIU_DOMAIN') ],
License
MIT