Code examples with guidance for the AWS SDK for PHP - AWS SDK for PHP
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Code examples with guidance for the AWS SDK for PHP

This section contains code examples that demonstrate common AWS scenarios that use the AWS SDK for PHP.

All the example code for the AWS SDK for PHP is available here on GitHub.

Credentials

Before running the example code, configure your AWS credentials, as described in Authenticating with AWS using AWS SDK for PHP Version 3. Then import the AWS SDK for PHP, as described in Installing the AWS SDK for PHP Version 3.