Skip to content

Commit

Permalink
Updated the README
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremeamia committed Jul 5, 2013
1 parent 545915c commit 14aee8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions README.md
@@ -1,5 +1,8 @@
# AWS Service Provider for Silex

[![Latest Stable Version](https://poser.pugx.org/aws/aws-sdk-php-silex/v/stable.png)](https://packagist.org/packages/aws/aws-sdk-php-silex)
[![Total Downloads](https://poser.pugx.org/aws/aws-sdk-php-silex/downloads.png)](https://packagist.org/packages/aws/aws-sdk-php-silex)

A simple Silex service provider for including the [AWS SDK for PHP](https://github.com/aws/aws-sdk-php).

## Installation
Expand Down Expand Up @@ -28,7 +31,6 @@ configuration file. This value is passed directly into `Aws\Common\Aws::factory(

require __DIR__ . '/vendor/autoload.php';

use Aws\Common\Enum\Region;
use Aws\Silex\AwsServiceProvider;
use Silex\Application;

Expand All @@ -38,10 +40,11 @@ $app->register(new AwsServiceProvider(), array(
'aws.config' => array(
'key' => 'your-aws-access-key-id',
'secret' => 'your-aws-secret-access-key',
'region' => Region::US_EAST_1
'region' => 'us-east-1',
)
));
// Note: You can also specify a path to a config file (e.g., 'aws.config' => '/path/to/aws/config/file.php')
// Note: You can also specify a path to a config file
// (e.g., 'aws.config' => '/path/to/aws/config/file.php')

$app->match('/', function () use ($app) {
// Get the Amazon S3 client
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -13,7 +13,7 @@
],
"require": {
"php": ">=5.3.3",
"aws/aws-sdk-php": "2.*",
"aws/aws-sdk-php": "~2.0",
"silex/silex": "~1.0"
},
"minimum-stability": "dev",
Expand Down

0 comments on commit 14aee8e

Please sign in to comment.