In association with heise online

05 November 2012, 15:14

Amazon resets AWS's PHP SDK

  • Twitter
  • Facebook
  • submit to slashdot
  • StumbleUpon
  • submit to reddit

Amazon Web Services icon The new version of Amazon Web Services (AWS) for PHP application developers has been rebuilt from the ground up to take advantage of PHP 5.3 and take into account the PHP Framework Interop Group's recommendations. The new AWS SDK for PHP 2 is now constructed on the Guzzle HTTP client framework which enables event-driven customisation and increases performance. AWS service clients now extend the Guzzle client and how they operate is described in a service description file.

PHP development icon The SDK also manages both serial and parallel persistent connections and can detect, and automatically retry with exponential back-off, transient network failures. Within the SDK, a more robust and flexible object-oriented architecture has been implemented using design patterns, event dispatching and dependency injection; Composer takes care of resolution of dependencies. There are also improvements to the error handling, logging and caching, and many more helper objects for cleaner code.

The SDK has a number of explicitly new features such as multi-part uploads to Amazon S3 and Glacier with pause and resume support, batched writes to Amazon's DynamoDB, event hooks though the Symfony2 Event Dispatcher and "Waiter" objects that can poll resources until they exist in the desired state. The SDK currently supports Amazon S3, Glacier, DynamoDB and CloudFront services.

AWS SDK for PHP 2 includes the PHP library, code samples and a selection of documentation including a Getting Started Guide, Migration Guide, 'Side By Side' Guide and API reference. The Apache 2.0-licensed SDK is also available from the project's GitHub repository and requires PHP 5.3.2 or later with the cURL extension and a recent version of cURL compiled with OpenSSL.


Print Version | Send by email | Permalink:

  • July's Community Calendar

The H Open

The H Security

The H Developer

The H Internet Toolkit