Install the AWS Service Provider
masterInstall the package via Composer by adding aws/aws-sdk-php-laravel to your composer.json file and running composer update.
Registering the Provider
For Laravel
Add Aws\Laravel\AwsServiceProvider::class to the providers array in config/app.php.
To use the AWS facade, add Aws\Laravel\AwsFacade::class to the aliases array in config/app.php.
For Lumen
Register the provider in bootstrap/app.php using $app->register().
{
"require": {
"aws/aws-sdk-php-laravel": "~3.0"
}
}// Laravel: config/app.php
'providers' => array(
// ...
Aws\Laravel\AwsServiceProvider::class,
)
'aliases' => array(
// ...
'AWS' => Aws\Laravel\AwsFacade::class,
)// Lumen: bootstrap/app.php
$app->register(Aws\Laravel\AwsServiceProvider::class);