

# Amazon EC2 examples using the Amazon SDK for PHP Version 3
<a name="ec2-examples"></a>

Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides virtual server hosting in the cloud. It’s designed to make web-scale cloud computing easier for developers by providing resizeable compute capacity.

All the example code for the Amazon 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 Amazon credentials, as described in [Authenticating with Amazon using Amazon SDK for PHP Version 3](credentials.md). Then import the Amazon SDK for PHP, as described in [Installing the Amazon SDK for PHP Version 3](getting-started_installation.md).

**Topics**
+ [Credentials](#examplecredentials)
+ [Managing Amazon EC2 instances](ec2-examples-managing-instances.md)
+ [Using Elastic IP addresses](ec2-examples-using-elastic-ip-addresses.md)
+ [Using regions and availability zones](ec2-examples-using-regions-and-zones.md)
+ [Working with key pairs](ec2-examples-working-with-key-pairs.md)
+ [Working with security groups](ec2-examples-using-security-groups.md)