ebichan / silex-aws-provider
AWS service provider for the Silex framework.
dev-master
2015-04-27 20:43 UTC
Requires
- aws/aws-sdk-php: >=2.4.6
- pimple/pimple: *
- silex/silex: 1.*
This package is not auto-updated.
Last update: 2024-04-23 05:23:04 UTC
README
AWS service provider for the Silex framework.
Install via composer
Add in your composer.json
the require entry for this library.
{ "require": { "ebichan/silex-aws-provider": "dev-master" } }
and run composer install
(or update
) to download all files.
Usage
Service registration
$app->register(new AmqpServiceProvider, array( 'aws.connections' => array( 'default' => array( 'key' => '', 'secret' => '', 'region' => 'us-east-1' ) ), ));
Connections retrieving
$connections = $app['aws']; $defaultConnection = $connections['default'];
Creating aws connection via factory
$awsFactory = $app['aws.factory']; $customConnection = $awsFactory('', '', 'us-east-1');