awayr / aws-man
Yii2 AWS Manager, An AWS APIs based wrapper built as Yii2 component. An extension to the AWS SDK for PHP for interacting with AWS services using resource-oriented objects.
Installs: 108
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- aws/aws-sdk-php-resources: >=0.3.0
- yiisoft/yii2: ~2.0.0
This package is not auto-updated.
Last update: 2025-03-22 11:07:51 UTC
README
Cashier Extension for Yii 2 (Ported By Famous Yii2 Cashier [yii2mod/cashier]). Implemented with Latest Updates.
Yii2 AWS Manager
Yii2 AWS Manager, An AWS Resource APIs based wrapper built as Yii2 component. An extension to the AWS SDK for PHP for interacting with AWS services using resource-oriented objects.
Support
The AWS Resource APIs currently supports 7 services (cloudformation, ec2, glacier, iam, s3, sns, sqs).
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist awayr/aws-man "*"
or add
"awayr/aws-man": "*"
to the require section of your composer.json
file.
Usage
1. Configuration
Once the extension is installed, locate main.php file and setup configurations below:
'components' => [ 'aws' => [ 'class' => 'awayr\aws-man\Base', 'key' => 'your_key', 'secret' => 'your_secret', 'region' => 'your_region', // optional config file //'configFile' => require_once('/path/to/aws.config.php'), ] ]
after adding the configuration, simply use it in your code by :
/* @var $aws awayr\aws-man\Base */ $aws = Yii::$app->aws; $s3 = $aws->s3(['region' => 'eu-central-1']); $bucket = $aws->s3->bucket('my-bucket'); $object = $bucket->object('image/bird.jpg');