davidhirtz / yii2-media-s3
Amazon S3 extension for media management module based on Yii 2.0 framework
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- aws/aws-sdk-php: ^3.154
- davidhirtz/yii2-media: ^2.0.2
README
This extension enables the use of Amazon S3 as file system for the Yii 2 extension yii2-media.
Add the following to your application configuration. Both awsAccessKey
and awsAccessSecret
can also be set in config/params.php
or omitted in which case the default AWS configuration will be loaded.
<?php return [ 'modules' => [ 'media-s3' => [ 'bucket' => 'your-bucket', 'region' => 'your-region', 'awsAccessKey' => 'your-key', 'awsAccessSecret' => 'your-secret', ], ], ];