The Flysystem AliyunOss adapter for the Yii framework
$ composer require jimchen/yii2-flysystem-aliyun-oss -vvv
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.
MIT