

# 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](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/php/example_code).

## Credentials
<a name="examplecredentials"></a>

Before running the example code, configure your AWS credentials, as described in [Authenticating with AWS using AWS SDK for PHP Version 3](credentials.md). Then import the AWS SDK for PHP, as described in [Installing the AWS SDK for PHP Version 3](getting-started_installation.md).

**Topics**
+ [Credentials](#examplecredentials)
+ [Amazon CloudFront examples](cf-examples.md)
+ [Amazon CloudSearch](service_cloudsearch-custom-requests.md)
+ [Amazon CloudWatch examples](cw-examples.md)
+ [Amazon EC2 examples](ec2-examples.md)
+ [Amazon OpenSearch Service](service_es-data-plane.md)
+ [AWS Identity and Access Management examples](iam-examples.md)
+ [AWS Key Management Service](kms-examples.md)
+ [Kinesis examples](kinesis-examples.md)
+ [AWS Elemental MediaConvert](emc-examples.md)
+ [Amazon S3 examples](s3-examples.md)
+ [AWS Secrets Manager](secretsmanager-examples-manage-secret.md)
+ [Amazon SES examples](ses-examples.md)
+ [Amazon SNS examples](sns-examples.md)
+ [Amazon SQS examples](sqs-examples.md)
+ [Amazon EventBridge](eventbridge-examples.md)