2017 © Pedro Peláez
 

symfony-bundle aws-bundle

Symfony AwsBundle

image

ushios/aws-bundle

Symfony AwsBundle

  • Wednesday, October 30, 2013
  • by ushios
  • Repository
  • 1 Watchers
  • 0 Stars
  • 191 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

aws-bundle

Create aws client using 'config.yml'., (*1)


Installation

composer.json

# composer.json

"require": {
    "ushios/aws-bundle": "0.0.*",
    …
}

and run composer update command., (*2)

AppKernel.php

# app/AppKernel.php

public function registerBundles()
{
    bundles = array(
        // ...
        new Ushios\Bundle\AwsBundle\UshiosAwsBundle(),
    );

    retrun bundles();
}

Confguration

config.yml, (*3)

# app/config/config.php

ushios_aws:
    client:
        default:
            key: ${your_aws_key}
            secret: ${your_aws_secret_key}
            region: ap-northeast-1
        named:
            class: Your\Aws\Client # default: Aws\Common\Aws
            key: ${your_named_aws_key}
            secret: ${your_named_aws_secret_key}
            region: eu-west-1

Usage

Get client from service.

Using default settings aws client., (*4)

# Bundle/Controller/Controller.php

public function fooAction()
{
    $aws = $this->container->get('ushios_aws_client');
    // or
    $aws = $this->container->get('ushios_aws_client.default');
}

Using named settings., (*5)

# Bundle/Controller/Controller.php

public function fooAction()
{
    $aws = $this->container->get('ushios_aws_client.named');
    get_class($aws); // Your\Aws\Client
}

Client

@see aws/aws-sdk-php web siite, (*6)

The Versions

30/10 2013

dev-master

9999999-dev http://github.com/ushios/aws-bundle

Symfony AwsBundle

  Sources   Download

MIT

The Requires

 

by Ushio Shugo

aws amazon web services

30/10 2013

0.0.3

0.0.3.0 http://github.com/ushios/aws-bundle

Symfony AwsBundle

  Sources   Download

MIT

The Requires

 

by Ushio Shugo

aws amazon web services

17/10 2013

0.0.2

0.0.2.0 http://github.com/ushios/aws-bundle

Symfony AwsBundle

  Sources   Download

MIT

The Requires

 

by Ushio Shugo

aws amazon web services

14/10 2013

0.0.1

0.0.1.0 http://github.com/ushios/aws-bundle

Symfony AwsBundle

  Sources   Download

MIT

The Requires

 

by Ushio Shugo

amazon aws amazon web services