platinumpixs / aws-symfony2-bundle
A simple Symfony 2 bundle for including the AWS SDK for PHP.
Installs: 74 224
Dependents: 1
Suggesters: 0
Security: 0
Stars: 12
Watchers: 2
Forks: 6
Open Issues: 4
Requires
- php: >=5.5
- aws/aws-sdk-php: 3.*
- symfony/symfony: 2.*
Requires (Dev)
- phpunit/phpunit: 4.1.*
This package is not auto-updated.
Last update: 2024-10-26 14:56:18 UTC
README
This Package Is No Longer Being Updated - Please See the One Provided By Amazon AWS Directly
https://github.com/aws/aws-sdk-php-symfony
AWS SDK 2 - Symfony 2 Bundle
Provides a simple Symfony 2 Bundle to Wrap the AWS PHP SDK 2 - https://github.com/aws/aws-sdk-php
Installing via Composer
This will install Version 3 of the SDK.
{ "require": { "platinumpixs/aws-symfony2-bundle": "dev-master" } }
If you want to stay on older Version 2 of the SDK.
{ "require": { "platinumpixs/aws-symfony2-bundle": "1.2.0" } }
Using and Setting Up
autoload.php
$loader->registerNamespaces( 'PlatinumPixs' => __DIR__ . '/../vendor/platinumpixs' )
Kernel.php
public function registerBundles() { $bundles = array( new PlatinumPixs\Aws\PlatinumPixsAwsBundle() ); }
The code calls \Aws\Common\Aws::factory(), which setups the ability to call all the services provided by the library
There is a base class always setup under:
$this->get('platinum_pixs_aws.default');
This will call the factory method with blank config values
To provide custom setup for access, secret keys. Add a config options in your config.yml, like:
platinum_pixs_aws: base: region: us-east-1 key: my-access-key secret: my-secret-key
Then to access this setup call:
$this->get('platinum_pixs_aws.base');