Minor improvements made to increase performance and to drop dependencies of sqs.client.php:

PEAR::HTTP_Request has been replaced by CURL or HTTP URL Wrappers, depending on availability

PEAR::Crypt_HMAC has been replaced by hash or mhash PECL, depending on availability

A standalone HMAC function has been included, so the library can run without hash or mhash PECL

The library uses POST mode rather than GET if the query string is longer than 1k

The HMAC conversion from hexadecimal to binary is done with pack(), rather than with a for-loop

PHPDoc blocks have been added

The PHP sample code includes an example file called sqs.test.php that performs basic SQS actions. We explain how to run that example. We also walk through the contents of that file. After you're familiar with the contents of sqs.test.php, you can modify the file as you'd like to suit your needs.

Prerequisites

You must have a valid Amazon Web Services developer account (go to http://aws.amazon.com to sign up for one).