webguosai/flysystem-qiniu

Flysystem adapter for the Qiniu storage.

v1.0.0 2024-10-11 06:57 UTC

This package is auto-updated.

Last update: 2024-11-11 07:08:03 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

解决七牛云在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