环境要求
1.php >= 7.1
2. thinkphp >= 6.0.0
支持
-
阿里云
-
七牛云
-
腾讯云
安装
第一步:
$ 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' => '******&#