The AWS SDK for PHP enables developers to build solutions for Amazon Simple Storage Service (Amazon S3), Amazon Elastic Compute Cloud (Amazon EC2), Amazon SimpleDB, and more. With the AWS SDK for PHP, developers can get started in minutes with a single, downloadable package.1
php composer.phar require aws/aws-sdk-php
<?php require 'vendor/autoload.php';
...credentials should be detected by the SDK from either:2
- environment variables (via AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY)
- an AWS credentials INI file in your HOME directory (see AWS Command Line Interface)
- AWS Identity and Access Management (IAM) instance profile credentials
- or credential providers.