Skip to content

CheungQ/luya-aliyun-oss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LUYA Aliyun OSS

Aliyun OSS for LUYA

Installation

执行composer,或者修改composer.json

composer require cheungq/luya-aliyun-oss:~0.1.0

composer.json

"require": {
        "cheungq/luya-aliyun-oss": "~0.1.0"
    },

Configuration

修改env-local.php 添加相应的配置

'components' => [
   'storage' => [
       'class' => 'luya\aliyun\AliyunOSS',
       'accessKeyId' => 'xxxxx', // 阿里云OSS AccessKeyID
       'accessKeySecret' => 'xxxx', // 阿里云OSS AccessKeySecret
       'bucket' => 'xxx', // 阿里云的bucket空间
       'domain' => 'xxx', // 自己解析的域名,如果没有可填endPoint带http或者https
       'pathPrefix' => 'xxx', // 文件夹名称
       'endPoint' => 'xxx', //endPoint  如oss-cn-hangzhou.aliyuncs.com
   ]
]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages