|Did this page help you? Yes | No | Tell us about it...|
This guide shows how to migrate your code to use the new AWS SDK for PHP 2 and how the new SDK differs from the first version of the SDK.
The PHP language and community have evolved significantly over the past few years. Since the inception of the AWS SDK for PHP, PHP has gone through two major version changes (versions 5.3 and 5.4) and many in the PHP community have unified behind the recommendations of the PHP Framework Interop Group. Consequently, we decided to make breaking changes to the SDK in order to align with the more modern patterns used in the PHP community.
For the new release, we rewrote the SDK from the ground up to address popular customer requests. The new SDK is built on top of the Guzzle HTTP client framework, which provides increased performance and enables event-driven customization. We also introduced high-level abstractions to make programming common tasks easy. The SDK is compatible with PHP 5.3.2 and newer, and follows the PSR-0 standard for namespaces and autoloading.
The AWS SDK for PHP 2 does not currently support all AWS services. However, we will incrementally add support for other services in upcoming releases to the Version 2 SDK.
Fortunately, it is straightforward to use the previous SDK side-by-side with this version. This enables using the SDK for the services it supports while relying on the prior SDK for those it does not. Please see the Side-by-Side Guide for details.
Follow our AWS SDK for PHP 2 GitHub repository to stay up-to-date with the latest changes.