Download the PHP package vladimirkudarev/yii2-aws-s3 without Composer
On this page you can find all versions of the php package vladimirkudarev/yii2-aws-s3. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vladimirkudarev/yii2-aws-s3
More information about vladimirkudarev/yii2-aws-s3
Files in vladimirkudarev/yii2-aws-s3
Package yii2-aws-s3
Short Description An Amazon S3 component for Yii2
License MIT
Homepage https://github.com/bp-sys/yii2-aws-s3
Informations about the package yii2-aws-s3
Yii2 AWS S3
An Amazon S3 component for Yii2.
Yii2 AWS S3 uses SemVer.
Version 2.x requires PHP 7. For PHP less 7.0 use 1.x.
About this project
This project is a fork from the excellent project yii2-aws-s3 by frostealth and adnsio and bp-sys.
Upon their work, we add support for IAM role attached to the EC2, which you don't need to insert your credentials.
We will also add support for easier integration with your models, by adding a S3MediaTrait.
Installation
-
Run the Composer command to install the latest version:
- Add the component to
config/main.php
Credentials parameter is optional: if you plan to use IAM roles attached to your EC2 instance there is no need for credentials. Just remove this parameter. Just be cautious if you need those credentials, this may cause errors during execution. Endpoint parameter is optional: You can specify a custom endpoint here. Great for debugging with minio for example.
Basic usage
Usage of the command factory and additional params
Short syntax
Read more...
Advanced usage
Read more...
Using Traits
Attach the Trait to the model with some media attribute that will be saved in S3:
Read more...
License
Yii2 AWS S3 is licensed under the MIT License.
See the LICENSE file for more information.