webfactory/aws-sdk2-bundle

A simple Symfony (2.x, 3.x and beyond) bundle for including the AWS SDK v2.x

0.1.1 2018-09-10 09:12 UTC

This package is auto-updated.

Last update: 2024-10-10 22:49:04 UTC


README

Build Status

Provides a simple Symfony Bundle to wrap the AWS PHP SDK v2.x.

This is a fork of the original platinumpixs/aws-symfony2-bundle that we created to also allow the use of Symfony 3.x and above. Additionally, we've tried to limit Composer dependencies to something more specific than using the whole symfony/symfony stack.

Usage

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('webfactory_aws_sdk2.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:

webfactory_aws_sdk2:
    base:
        region: us-east-1
        key: my-access-key
        secret: my-secret-key

Then to access this setup call:

$this->get('webfactory_aws_sdk2.base');