Home » Web Services » Services_Amazon_SQS
PHP API and tools for Amazon SQS (Simple Queue Service)
This package is unmaintained.
Download latest release 0.3.0 (archived versions might be outdated)
License: Apache License 2.0
Description
This package provides an object-oriented interface to the Amazon Simple Queue Service (SQS). Included are client libraries and a command-line script for managing queues. You will need a set of web-service keys from Amazon Web Services that have SQS enabled. You can sign up for an account at: https://aws-portal.amazon.com/gp/aws/developer/registration/index.html.
Note: Although this package has no cost, Amazon's Web services are not free to use. You will be billed by Amazon for your use of SQS.
This package is derived with permission from the simple-aws package available at http://code.google.com/p/simple-aws/ and written by Mike Brittain.
This package requires PHP 5.2.1. On Red Hat flavored distributions, the "php-xml" package must also be installed.
There are two main ways to use this package. Firstly, it provides an API that may be used to manage queues, and to add and remove messages from queues in PHP scripts. The Services_Amazon_SQS_QueueManager and Services_Amazon_SQS_Queue classes provide these methods.
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:
A command-line interface to Amazon's Simple Queue Service (SQS).
Usage:
/usr/bin/sqs [options]
/usr/bin/sqs [options] <command> [options] [args]
Options:
-c config, --config=config Find configuration in "config".
Commands:
create Creates a new queue with the specified name. The queue may
take up to 60 seconds to become available.
delete Deletes an existing queue by the specified URI. The queue
may take up to 60 seconds to become unavailable.
help Displays an overview of available options and commands, or
detailed help for a specific command.
list Lists available queues. If a prefix is specified, only
queues beginning with the specified prefix are listed.
send Sends input from STDIN to the specified queue. The
resulting message identifier is displayed on STDOUT.
receive Receives a message from the specified queue. The message
body is displayed on STDOUT. If no message is received,
nothing is displayed on STDOUT.
version Displays version information and exits.
Maintainers
- Mike Gauthier (gauthierm) — lead, active
- Mike Brittain (mikebrittain) — lead, active
Dependencies
Required
- PHP (>= 5.2.1)
- PEAR Installer (>= 1.7.0)
- PEAR
- Console_CommandLine (>= 1.1.0)
- Crypt_HMAC2 (>= 0.2.1)
- Net_URL2 (>= 0.2.0)
- HTTP_Request2 (>= 0.1.0)
Releases
- 0.3.0 (beta, 2009-11-24)
Release notes
License: Apache License 2.0
* Upgrade to the SQS API version 2009-02-01.
* Support new SQS features. Request #16085.
* Better unit tests.
* End user documentation on the PEAR website.
* Depend on Console_CommandLine for the CLI utility.
* Handle internal errors automatically. Request #16824. - 0.2.0 (beta, 2009-06-19)
- 0.1.0 (alpha, 2008-12-11)
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #15430 | Closed | Req | CVS | 2008-12-28 | Use Console_CommandLine |
| #15431 | Closed | Req | CVS | 2008-12-28 | Add ability to send and receive messages on the command line |
| #15432 | Closed | Req | 0.1.0 | 2008-12-28 | Use Signature Version 2 for verifying requests |
| #15451 | Closed | Req | CVS | 2008-12-30 | Improve units tests, use mock HTTP objects |
| #16041 | Closed | Bug | CVS | 2009-03-17 | Stop abusing backtick as a quotation mark. |
| #16085 | Closed | Req | CVS | 2009-04-09 | Support new SQS commands |
| #16824 | Closed | Req | CVS | 2009-11-23 | Handle Amazon InternalError errors automagically |
| #16832 | Open | Req | CVS | 2009-11-24 | Implement the policy language for queues |
| #16975 | Open | Bug | 0.3.0 | 2010-01-06 | Slow memory leak |
| #17752 | Closed | Doc | SVN | 2010-08-19 | Broken link in testing doc comment |
| #19020 | Closed | Bug | SVN | 2011-11-14 | remove error_reporting (for PEAR QA team) |
| #19166 | Closed | Bug | SVN | 2011-12-29 | upgrade PHPUnit require statements & other fixes (for PEAR QA Team) |
| #19167 | Closed | Bug | SVN | 2011-12-29 | "Array to string conversion" in Queue.php line 513 |