Github地址:https://github.com/QThans/thinkphp-filesystem-cloud
码云地址:https://gitee.com/thans/thinkphp-filesystem-cloud
支持最新的thinkphp6.0
通过系统服务扩展filesystem,目前支持上传阿里云OSS和七牛云
安装
第一步:
$ 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地址域名。
],
授权MIT