AWS SDK for PHP 2

The AWS SDK for PHP 2 is a completely re-written SDK for PHP developers. It provides a library, code samples, and documentation for developers to build PHP applications that tap into the cost-effective, scalable, and reliable AWS cloud.

With the AWS SDK for PHP 2, developers get started in minutes using AWS infrastructure services, including Amazon DynamoDB, Amazon Simple Storage Service (Amazon S3), Amazon Glacier, and Amazon CloudFront.

 Do you need the previous version?

PHP developers will find both versions of the AWS SDK for PHP familiar and easy to use. However, the AWS SDK for PHP 2 will, over time, replace the initial SDK and brings important advantages such as:

  • Persistent HTTP connections for faster performance,
  • Embraces modern PHP coding standards, patterns, and practices,
  • Improved error handling, logging, and caching,
  • Event-driven customization,
  • Numerous helper objects resulting in less and cleaner code.

Since both SDKs work well side-by-side in the same application, a developer can continue to rely on the initial AWS SDK for PHP when:

  • It requires access to AWS services not yet supported by AWS SDK for PHP 2,
  • Porting would require significant effort.

We will continue to broaden support for AWS services in the AWS SDK for PHP 2. Additionally, a developer may take a staged approach to gradually move parts of their application to the new SDK. PHP developers should begin planning how to take full advantage of all that the AWS SDK for PHP 2 offers.


Features

The SDK includes:

AWS PHP Library

Build PHP applications on top of APIs that take the complexity out of coding directly against a web service interface. The library provides APIs that hide much of the lower-level plumbing, such as authentication.

Code Samples

Practical examples for how to use the library to build applications.

PEAR Channel

Easily install and update the SDK using our PHP Extension and Application Repository (PEAR) channel.



Supported Services

The AWS SDK for PHP supports AWS infrastructure products, including:



Prerequisites

  • PHP 5.3.2 (or later) compiled with the cURL extension
  • A recent version of cURL 7.16.2+ compiled with OpenSSL



Resources


©2011, Amazon Web Services LLC or its affiliates. All rights reserved.