iamsohot / thinkphp-filesystem-cloud
thinkphp6.0 filesystem,include Aliyun and Qiniu
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/iamsohot/thinkphp-filesystem-cloud
Requires
- php: >=7.1.0
- league/flysystem-aws-s3-v3: ^1.0
- liz/flysystem-qiniu: ^1.10
- overtrue/flysystem-cos: ^2.0.0
- topthink/framework: ^6.0.0
- xxtime/flysystem-aliyun-oss: ^1.4
README
thinkphp6.0 的文件系统扩展包,支持上传阿里云OSS和七牛和腾讯云COS
包含
- php >= 7.1
- thinkphp >=6.0.0
支持
- 阿里云
- 七牛云
- 腾讯云
计划
- 支持华为云
安装
第一步:
$ composer require thans/thinkphp-filesystem-cloud
第二步: 在config/filesystem.php中添加配置
'aliyun' => [
    'type'         => 'aliyun',
    'accessId'     => '******',
    'accessSecret' => '******',
    'bucket'       => 'bucket',
    'endpoint'     => 'oss-cn-hongkong.aliyuncs.com',
    'url'          => 'http://oss-cn-hongkong.aliyuncs.com',//不要斜杠结尾,此处为URL地址域名。
],
'qiniu'  => [
    'type'      => 'qiniu',
    'accessKey' => '******',
    'secretKey' => '******',
    'bucket'    => 'bucket',
    'url'       => '',//不要斜杠结尾,此处为URL地址域名。
],
'qcloud' => [
    'type'       => 'qcloud',
    'region'      => '***',
    'appId'      => '***', // 域名中数字部分
    'secretId'   => '***',
    'secretKey'  => '***',
    'bucket'          => '***',
    'timeout'         => 60,
    'connect_timeout' => 60,
    'cdn'             => '您的 CDN 域名',
    'scheme'          => 'https',
    'read_from_cdn'   => false,
]
授权
MIT
感谢
- thinkphp
- xxtime/flysystem-aliyun-oss
- liz/flysystem-qiniu
- league/flysystem
- overtrue/flysystem-cos