PHPackages                             xy\_jx/thinkphp-filesystem-cloud - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. xy\_jx/thinkphp-filesystem-cloud

ActiveLibrary[File &amp; Storage](/categories/file-storage)

xy\_jx/thinkphp-filesystem-cloud
================================

thinkphp6.0 filesystem,include Aliyun and Qiniu and qcloud

2.1.2(4y ago)62471MITPHPPHP &gt;=7.1.0

Since Oct 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/XY-JX/thinkphp-filesystem-cloud)[ Packagist](https://packagist.org/packages/xy_jx/thinkphp-filesystem-cloud)[ RSS](/packages/xy-jx-thinkphp-filesystem-cloud/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (4)Versions (8)Used By (0)

thinkphp-filesystem-cloud

[](#thinkphp-filesystem-cloud)

 thinkphp6.0 的文件系统扩展包，支持上传阿里云OSS和七牛和腾讯云COS

包含
--

[](#包含)

1. php &gt;= 7.1
2. thinkphp &gt;=6.0.0
3. guzzlehttp/guzzle &gt;= 7

支持
--

[](#支持)

1. 阿里云
2. 七牛云
3. 腾讯云

版本说明
----

[](#版本说明)

v1. guzzlehttp/guzzle 支持 6.\*

```
$ composer require xy_jx/thinkphp-filesystem-cloud 1.1.*
```

v2. guzzlehttp/guzzle 支持 7.\*

```
$ composer require xy_jx/thinkphp-filesystem-cloud
```

所使用扩展有所不同

安装
--

[](#安装)

第一步：

```
$ composer require xy_jx/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'      => '***', //bucket 所属区域 英文
    'appId'      => '***', // 域名中数字部分
    'secretId'   => '***',
    'secretKey'  => '***',
    'bucket'          => '***',
    'timeout'         => 60,
    'connect_timeout' => 60,
    'cdn'             => '您的 CDN 域名',
    'scheme'          => 'http',
    'read_from_cdn'   => false,
]

```

第三步： 开始使用。

```
