powerkernel/yii-aws-s3
Composer 安装命令:
composer require powerkernel/yii-aws-s3
包简介
Yii2 AWS S3
README 文档
README
Yii AWS S3
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist powerkernel/yii-aws-s3 "*"
or add
"powerkernel/yii-aws-s3": "*"
to the require section of your composer.json file.
Usage
To use this extension, simply add the following code in your application configuration:
'components' => [
// ...
's3' => [
'__class' => powerkernel\s3\AwsS3::class,
'key' => 'your aws sns key',
'secret' => 'your aws sns secret',
'region' => 'us-west-2',
// 'endpoint' => '', // for digital ocean spaces https://sfo2.digitaloceanspaces.com
],
// ...
],
You can then call AWS S3 functions as follows:
Yii::$app->s3->client->put($arg);
// ...
For further instructions refer to the AWS Documentation page
统计信息
- 总下载量: 765
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-12-24