2017 © Pedro Peláez
 

library yii2-s3

An Amazon S3Client wrapper as Yii2 component

image

jovanialferez/yii2-s3

An Amazon S3Client wrapper as Yii2 component

  • Friday, April 22, 2016
  • by jovani
  • Repository
  • 4 Watchers
  • 6 Stars
  • 2,700 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

yii2-s3

An Amazon S3Client wrapper as Yii2 component., (*1)

Usage, (*2)

return [
    // ...
    'components' => [
        'storage' => [
            'class' => '\jovanialferez\yii2s3\AmazonS3',
            'key' => 'AWS_ACCESS_KEY_ID',
            'secret' => 'AWS_SECRET_ACCESS_KEY',
            'bucket' => 'YOUR_BUCKET',
        ],
        // ...
    ],
];

You can then start using this component as:, (*3)

$storage = \Yii::$app->storage;

// uploadFile() here returns the resulting S3 url of that file
$url = $storage->uploadFile('/path/to/file', 'unique_file_name');

The Versions

22/04 2016

dev-master

9999999-dev https://github.com/jovanialferez/yii2-s3

An Amazon S3Client wrapper as Yii2 component

  Sources   Download

MIT

The Requires

 

by Jovani Fernandez Alferez

yii2 s3 yii2-s3 yii2s3

23/04 2015

1.0

1.0.0.0 https://github.com/jovanialferez/yii2-s3

An Amazon S3Client wrapper as Yii2 component

  Sources   Download

MIT

The Requires

 

by Jovani Fernandez Alferez

yii2 s3 yii2-s3 yii2s3