You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple [Laravel 5](http://laravel.com/) service provider for making it easier to include the official [AWS SDK for PHP](https://github.com/aws/aws-sdk-php) into your Laravel application.
9
+
This is a simple [Laravel](http://laravel.com/) service provider for making it easy to include the official
10
+
[AWS SDK for PHP](https://github.com/aws/aws-sdk-php) in your Laravel and Lumen applications.
10
11
11
-
_(Looking for the Laravel 4 service provider? It's still available in the [1.0 branch](https://github.com/aws/aws-sdk-php-laravel/tree/1.0).)_
12
+
The master branch of this repository and this README are for version 3.x of the service provider, which is implemented
13
+
to work with Version 3 of the AWS SDK for PHP and Laravel 5.1+.
14
+
15
+
Past Versions:
16
+
17
+
*[2.0 branch](https://github.com/aws/aws-sdk-php-laravel/tree/2.0) - For Laravel 5.0 and Version 2 of the AWS SDK for PHP
18
+
*[1.0 branch](https://github.com/aws/aws-sdk-php-laravel/tree/1.0) - For Laravel 4.x and Version 2 of the AWS SDK for PHP
12
19
13
20
## Installation
14
21
@@ -18,7 +25,7 @@ The AWS Service Provider can be installed via [Composer](http://getcomposer.org)
18
25
```json
19
26
{
20
27
"require": {
21
-
"aws/aws-sdk-php-laravel": "~2.0"
28
+
"aws/aws-sdk-php-laravel": "~3.0"
22
29
}
23
30
}
24
31
```
@@ -54,8 +61,7 @@ By default, the package uses the following environment variables to auto-configu
54
61
```
55
62
AWS_ACCESS_KEY_ID
56
63
AWS_SECRET_ACCESS_KEY
57
-
AWS_REGION // default = us-east-1
58
-
AWS_CONFIG_FILE // default = null
64
+
AWS_REGION (default = us-east-1)
59
65
```
60
66
61
67
To customize the configuration file, publish the package configuration using Artisan.
@@ -68,13 +74,23 @@ Update your settings in the generated `app/config/aws.php` configuration file.
68
74
69
75
```php
70
76
return [
71
-
'key' => 'YOUR_AWS_ACCESS_KEY_ID',
72
-
'secret' => 'YOUR_AWS_SECRET_KEY',
73
-
'region' => 'us-east-1',
74
-
'config_file' => null,
77
+
'credentials' => [
78
+
'key' => 'YOUR_AWS_ACCESS_KEY_ID',
79
+
'secret' => 'YOUR_AWS_SECRET_ACCESS_KEY',
80
+
],
81
+
'region' => 'us-west-2',
82
+
'version' => 'latest',
83
+
84
+
// You can override settings for specific services
85
+
'Ses' => [
86
+
'region' => 'us-east-1',
87
+
],
75
88
];
76
89
```
77
90
91
+
Learn more about [configuring the SDK](http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/configuration.html) on
92
+
the SDK's User Guide.
93
+
78
94
## Usage
79
95
80
96
In order to use the AWS SDK for PHP within your app, you need to retrieve it from the [Laravel IoC
0 commit comments