About
Services_Amazon_SQS provides an object-oriented interface to the Amazon Simple Queue Service (SQS) using PHP. Included are client libraries and a command-line script for managing queues. This package is part of PEAR.
Services_Amazon_SQS is derived with permission from the simple-aws package written by Mike Brittain.
Installation
This package requires PHP 5.2.1. To install Services_Amazon_SQS using PEAR, run the following command:
$ pear install Services_Amazon_SQS
Usage
There are two main ways to use Services_Amazon_SQS. Firstly, it provides an object-oriented PHP API that may be used to manage queues, and to send and receive messages from queues. The Services_Amazon_SQS_QueueManager and Services_Amazon_SQS_Queue classes provide these methods. Refer to the API documentation for more details.
Secondly, a command-line application for managing SQS queues is provided. This is installed by PEAR as sqs. Running this command produces the following output:
$ sqs A command-line interface to Amazon's Simple Queue Service. Usage: sqs [options] command [args] Commands: create Creates a new queue with the specified name. delete Deletes an existing queue by the specified URI. list Lists avaiable queues. version Displays version information. Options: -c, --config=file Find configuration in `file'. Type `sqs help' to get the help for the specified command.