5 Star 84 Fork 27

Thans / thinkphp-filesystem-cloud

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

thinkphp-filesystem-cloud

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

包含

  1. php >= 7.1
  2. thinkphp >=6.0.0

支持

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

计划

  1. 支持华为云

安装

第一步:

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

第三步: 开始使用。 请参考thinkphp文档 文档地址:https://www.kancloud.cn/manual/thinkphp6_0/1037639

授权

MIT

感谢

  1. thinkphp
  2. xxtime/flysystem-aliyun-oss
  3. liz/flysystem-qiniu
  4. league/flysystem
  5. overtrue/flysystem-cos

About

thinkphp6.0的第三方filesystem扩展包,支持上传阿里云、七牛云。 expand collapse
PHP
Cancel

Releases

No release

thinkphp-filesystem-cloud

Contributors

All

Activities

Load More
can not load any more
PHP
1
https://gitee.com/thans/thinkphp-filesystem-cloud.git
git@gitee.com:thans/thinkphp-filesystem-cloud.git
thans
thinkphp-filesystem-cloud
thinkphp-filesystem-cloud
master

Search