davidhirtz/yii2-media-s3

There is no license information available for the latest version (v2.0.1) of this package.

Amazon S3 extension for media management module based on Yii 2.0 framework

v2.0.1 2023-11-06 18:00 UTC

This package is auto-updated.

Last update: 2024-11-07 21:56:45 UTC


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',
        ],
    ],
];