duan617 / think-filesystem-cloud
cloud filesystem for thinkphp6.0
v1.0.0
2022-09-20 12:03 UTC
Requires
- guzzlehttp/guzzle: ^7.0
- iidestiny/flysystem-oss: ^2.5
- overtrue/flysystem-cos: ^4.0
- overtrue/flysystem-qiniu: ^1.0
This package is auto-updated.
Last update: 2024-10-20 16:46:59 UTC
README
要求
- php 7.1
- topthink/framework 6.0.0
使用
composer require duan617/think-filesystem-cloud
配置
config/filesystem.php
"disks" => [ // oss 配置 'oss' => [ 'type' => 'oss', 'prefix' => '', 'access_key' => '', 'secret_key' => '', 'end_point' => '', // ssl:https://iidestiny.com 'bucket' => '', 'is_cname' => true, ], // 七牛配置 'qiniu' => [ 'type' => 'qiniu', 'access_key' => '', 'secret_key' => '', 'bucket' => '', 'domain' => '', ], // 腾讯云配置 'qcloud' => [ 'type' => 'qcloud', 'region' => '', 'credentials' => [ 'appId' => '', // 域名中数字部分 'secretId' => '', 'secretKey' => '', ], 'bucket' => 'test', 'timeout' => 60, 'connect_timeout' => 60, 'cdn' => '您的 CDN 域名', 'scheme' => 'https', 'read_from_cdn' => false, ]
感谢
协议
MIT