dev-master
9999999-devwrapper for yii aws
MIT
The Requires
extension php yii2 aws
Wallogit.com
2017 © Pedro Peláez
wrapper for yii aws
wrapper for yii aws, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist bryglen/yii2-aws "*"
or add, (*4)
"bryglen/yii2-aws": "*"
to the require section of your composer.json file., (*5)
in your main.php, your configuration would look like this, (*6)
'components' => [
'aws' => [
'class' => 'bryglen\aws\BaseAws',
'key' => 'your_key',
'secret' => 'your_secret',
'region' => 'your_region',
// optional config file
//'configFile' => require_once('/path/to/aws.config.php'),
]
]
Once the extension is installed, simply use it in your code by :, (*7)
/* @var $aws \bryglen\aws\BaseAws */
$aws = Yii::$app->aws;
$s3 = $aws->get('s3');
$s3->putObject(.....)
$ses = $aws->get('ses');
wrapper for yii aws
MIT
extension php yii2 aws