Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eexit/aws-symfony2-bundle
AWS SDK 2 - Symfony 2 Bundle
https://github.com/eexit/aws-symfony2-bundle
aws aws-sdk php symfony2 symfony2-bundle
Last synced: 2 days ago
JSON representation
AWS SDK 2 - Symfony 2 Bundle
- Host: GitHub
- URL: https://github.com/eexit/aws-symfony2-bundle
- Owner: eexit
- License: other
- Archived: true
- Fork: true (platinumpixs/aws-symfony2-bundle)
- Created: 2014-09-18T14:57:37.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-18T15:41:04.000Z (about 10 years ago)
- Last Synced: 2024-09-20T08:31:03.612Z (7 days ago)
- Topics: aws, aws-sdk, php, symfony2, symfony2-bundle
- Language: PHP
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
AWS SDK 2 - Symfony 2 Bundle
===================[![Build Status](https://travis-ci.org/platinumpixs/aws-symfony2-bundle.svg?branch=master)](https://travis-ci.org/platinumpixs/aws-symfony2-bundle)[![Latest Stable Version](https://poser.pugx.org/platinumpixs/aws-symfony2-bundle/v/stable.svg)](https://packagist.org/packages/platinumpixs/aws-symfony2-bundle) [![Total Downloads](https://poser.pugx.org/platinumpixs/aws-symfony2-bundle/downloads.svg)](https://packagist.org/packages/platinumpixs/aws-symfony2-bundle) [![Latest Unstable Version](https://poser.pugx.org/platinumpixs/aws-symfony2-bundle/v/unstable.svg)](https://packagist.org/packages/platinumpixs/aws-symfony2-bundle) [![License](https://poser.pugx.org/platinumpixs/aws-symfony2-bundle/license.svg)](https://packagist.org/packages/platinumpixs/aws-symfony2-bundle)
Provides a simple Symfony 2 Bundle to Wrap the AWS PHP SDK 2 - https://github.com/aws/aws-sdk-php
## Installing via Composer
```json
{
"require": {
"platinumpixs/aws-symfony2-bundle": "dev-master"
}
}
```## Using and Setting Up
### autoload.php
```php
$loader->registerNamespaces(
'PlatinumPixs' => __DIR__ . '/../vendor/platinumpixs'
)
```### Kernel.php
```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:
```php
$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:
```yaml
platinum_pixs_aws:
base:
region: us-east-1
key: my-access-key
secret: my-secret-key
```Then to access this setup call:
```php
$this->get('platinum_pixs_aws.base');
```