Skip to content

bryglen/yii2-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Yii 2 Aws wrapper

wrapper for yii aws

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist bryglen/yii2-aws "*"

or add

"bryglen/yii2-aws": "*"

to the require section of your composer.json file.

in your main.php, your configuration would look like this

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

Usage

Once the extension is installed, simply use it in your code by :

/* @var $aws \bryglen\aws\BaseAws */
$aws = Yii::$app->aws;
$s3 = $aws->get('s3');
$s3->putObject(.....)

$ses = $aws->get('ses');

About

wrapper for yii 2 aws

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages