brayun / yii2-upload
aliyun oss for filesystem
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/brayun/yii2-upload
Requires
- creocoder/yii2-flysystem: ^0.9.0
- xxtime/flysystem-aliyun-oss: ^1.1
This package is not auto-updated.
Last update: 2025-10-22 08:45:14 UTC
README
上海柏锐网络科技有限公司是一家技术型服务企业.可提供专业的技术外包服务,定制OA,ERP,电商系统,H5网站,天猫淘宝H5,欢迎前来咨询
安装
composer require brayun/yii2-upload
说明
return [
    //...
    'components' => [
        //...
        'upload' => [
            'class' => 'brayun\flysystem\OssFilesystem',
            'ossServer' => 'oss-cn-beijing.aliyuncs.com',
            'ossServerInternal' => 'oss-cn-shanghai-internal.aliyuncs.com',
            'accessKeyId' => 'your-accessKeyId',
            'accessKeySecret' => 'your-accessKeySecret',
            'bucket' => 'your-bucket'
            // 'internal' => false,  // 默认外网, true内网
        ],
    ],
];