apixx/think-filesystem
flysystem for thinkphp6.1
MIT · 最后更新 2年前
## Think-Filesystem-cloud
### 要求
- php >= 8.0.2
- topthink/framework 6.1.x
- topthink/framework 8.x.x
### 使用
```php
composer require apixx/think-filesystem
```
### 配置
config/filesystem.php
```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,
]
```
### 感谢
- [iiDestiny/flysystem-oss](https://github.com/iiDestiny/flysystem-oss)
- [overtrue/flysystem-qiniu](https://github.com/overtrue/flysystem-qiniu)
- [overtrue/flysystem-cos](https://github.com/overtrue/flysystem-cos)
- [yzh52521/think-filesystem](https://github.com/yzh52521/think-filesystem)
- [yzh52521/filesystem-oss](https://github.com/yzh52521/filesystem-oss)
- [yzh52521/filesystem-obs](https://github.com/yzh52521/filesystem-obs)
### 协议
MIT
扩展中心
立即提交欢迎提交你的ThinkPHP扩展
推荐扩展
-
topthink/think-ai
1年前
-
topthink/think-api
1年前
-
topthink/think-dumper
Dumper extend for thinkphp
11个月前 -
topthink/think-validate
think validate
1年前 -
yzh52521/think-mailer
A powerful and beautiful php mailer for All of ThinkPHP and Other PHP Frameworks based Symfony mailer
2年前