simonxiaoma/yii2-flysystem-aliyun-oss

The Flysystem AliyunOss adapter for the Yii framework

dev-master 2019-01-26 01:25 UTC

This package is auto-updated.

Last update: 2025-02-26 15:04:35 UTC


README

The Flysystem AliyunOss adapter for the Yii framework

Installing

$ composer require jimchen/yii2-flysystem-aliyun-oss -vvv

Usage

Configure application components as follows

return [
    //...
    'components' => [
        //...
        'ossFs' => [
            'class' => 'jimchen\flysystem\AliyunOssFilesystem',
            'key' => 'your-key',
            'secret' => 'your-secret',
            'bucket' => 'your-bucket',
            'endpoint' => 'http://my-custom-url',
            // 'isCName' => false,
            // 'securityToken' => null,
            // 'requestProxy' => null,
            // 'prefix' => 'your-prefix',
            // 'options' => [],
        ],
    ],
];

More about AliyunOss configuration please see here.

What about the options you can follow the repo to see more.

License

MIT