simerlin / think-filesystem-cloud
cloud filesystem for thinkphp8.0
dev-main
2023-07-31 04:00 UTC
Requires
- guzzlehttp/guzzle: ^7.0
- iidestiny/flysystem-oss: ^3.0
- overtrue/flysystem-cos: ^4.0
- overtrue/flysystem-qiniu: ^2.0
- topthink/framework: ^8.0
- topthink/think-filesystem: ^2.0
This package is auto-updated.
Last update: 2025-02-20 07:43:36 UTC
README
要求
- php 8.0
- topthink/framework 8.0.0
使用
composer require simerlin/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