takashiki/yii2-cos-flysystem

v1.2.1 2022-12-14 11:27 UTC

This package is auto-updated.

Last update: 2024-12-14 15:40:56 UTC


README

Yii2 tencent-cos(v3/v4/v5) flysystem

Install

composer require takashiki/yii2-cos-flysystem

Usage

'cosFs' => [
    'class' => \takashiki\yii2\flysystem\CosFilesystem::class,
    'app_id' => 'xxx',
    'secret_id' => 'xxx',
    'secret_key' => 'xxx',
    'bucket' => 'xxx',
    'domain' => 'xxx.file.myqcloud.com',
    
    // not necessarily bellow 
    'version' => 'v5',
    'protocol' => 'https',
    'region' => 'ap-shanghai',
    'timeout' => 60,
    'cdn_key' => '',
    'read_from_cdn' => false,
    'encrypt' => false
],

More information: https://github.com/creocoder/yii2-flysystem