AWS SDK for PHP

The AWS SDK for PHP is a modern, open-source PHP library for AWS. Develop and deploy applications with the AWS SDK for PHP. The SDK makes it easy to call AWS services using idiomatic PHP APIs.

How it works

The AWS SDK for PHP simplifies the use of AWS services by providing a set of libraries that are consistent and familiar for PHP developers. All AWS SDKs support API lifecycle considerations such as credential management, retries, data marshaling, and serialization.

The AWS SDK for PHP provides PHP APIs for each AWS service. Using the SDK, you can build PHP applications that work with Amazon S3, Amazon EC2, Amazon DynamoDB, and more. The AWS SDK for PHP can be extended through handlers and middleware.

Features

The AWS SDK for PHP uses promises to allow for asynchronous workflows, and this asynchronicity allows HTTP requests to be sent concurrently. A promise represents the eventual result of an asynchronous operation.

Learn more

The AWS SDK for PHP supports easy result querying with JMESPath, a JSON querying language. You can extract data from result models and from paginators using a JMESPath expression.

Learn more

Many AWS operations return paginated results when the response object is too large for a single response. The AWS SDK for PHP provides paginators for seamless iteration of results across service calls.

Learn more

The AWS SDK for PHP provides helper methods called waiters, which automatically poll for predefined status changes in AWS resources. For example, you can start an Amazon EC2 instance and use a waiter to wait until it reaches the 'running' state, or you can create a new Amazon DynamoDB table and wait until it is available to use. In addition to waiting synchronously, you can invoke a waiter to wait asynchronously while sending other requests or waiting on multiple resources at once.

Learn more