Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

AWS SDK 2 - Symfony 2 Bundle

License

Notifications You must be signed in to change notification settings

eexit/aws-symfony2-bundle

 
 

Repository files navigation

AWS SDK 2 - Symfony 2 Bundle

Build StatusLatest Stable Version Total Downloads Latest Unstable Version License

Provides a simple Symfony 2 Bundle to Wrap the AWS PHP SDK 2 - https://github.com/aws/aws-sdk-php

Installing via Composer

{
    "require": {
        "platinumpixs/aws-symfony2-bundle": "dev-master"
    }
}

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');

Packages

No packages published

Languages

  • PHP 100.0%