From 14aee8e620dcd91f4f297b02f7ba74261731ad82 Mon Sep 17 00:00:00 2001 From: Jeremy Lindblom Date: Fri, 5 Jul 2013 09:38:02 -0700 Subject: [PATCH] Updated the README --- README.md | 9 ++++++--- composer.json | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c76e945..67c9ded 100644 --- a/README.md +++ b/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 @@ -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; @@ -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 diff --git a/composer.json b/composer.json index 776dd2b..6e87bd2 100644 --- a/composer.json +++ b/composer.json @@ -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",