1 Star 0 Fork 27

liuwave / thinkphp-filesystem-cloud

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

thinkphp-filesystem-cloud

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

包含

  1. php >= 8.0.1
  2. thinkphp >=8.0.0

支持

  1. 阿里云
  2. 腾讯云

计划

  1. 支持华为云

安装

第一步:

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

第三步: 开始使用。 请参考thinkphp文档 文档地址:https://doc.thinkphp.cn/v8_0/preface.html

授权

MIT

感谢

  1. thinkphp
  2. xxtime/flysystem-aliyun-oss
  3. league/flysystem
  4. overtrue/flysystem-cos
  5. thans/thinkphp-filesystem-cloud
MIT License Copyright (c) 2020 liuwave Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

thinkphp6.0的第三方filesystem扩展包,支持上传阿里云、七牛云。 展开 收起
PHP
MIT
取消

发行版 (4)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/liuwave/thinkphp-filesystem-cloud.git
git@gitee.com:liuwave/thinkphp-filesystem-cloud.git
liuwave
thinkphp-filesystem-cloud
thinkphp-filesystem-cloud
master

搜索帮助