Download the PHP package ushios/aws-bundle without Composer
On this page you can find all versions of the php package ushios/aws-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ushios/aws-bundle
More information about ushios/aws-bundle
Files in ushios/aws-bundle
Download ushios/aws-bundle
More information about ushios/aws-bundle
Files in ushios/aws-bundle
Vendor ushios
Package aws-bundle
Short Description Symfony AwsBundle
License MIT
Homepage http://github.com/ushios/aws-bundle
Package aws-bundle
Short Description Symfony AwsBundle
License MIT
Homepage http://github.com/ushios/aws-bundle
Keywords awsamazon web services
Please rate this library. Is it a good library?
Informations about the package aws-bundle
aws-bundle
Create aws client using 'config.yml'.
Installation
composer.json
# composer.json
"require": {
"ushios/aws-bundle": "0.0.*",
…
}
and run composer update
command.
AppKernel.php
# app/AppKernel.php
public function registerBundles()
{
bundles = array(
// ...
new Ushios\Bundle\AwsBundle\UshiosAwsBundle(),
);
retrun bundles();
}
Confguration
config.yml
# 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.
# 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.
# Bundle/Controller/Controller.php
public function fooAction()
{
$aws = $this->container->get('ushios_aws_client.named');
get_class($aws); // Your\Aws\Client
}
Client
All versions of aws-bundle with dependencies
PHP Build Version
Package Version
The package ushios/aws-bundle contains the following files
Loading the files please wait ....