cheungq/luya-aliyun-oss

0.1.1 2019-01-03 04:56 UTC

This package is auto-updated.

Last update: 2024-05-09 14:28:31 UTC


README

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
   ]
]