PEAR Services_Amazon_SQS PHP package

Sample Code & Libraries>Amazon SQS>PEAR Services_Amazon_SQS PHP package
Community Contributed Software

  • Amazon Web Services provides links to these packages as a convenience for our customers, but software not authored by an "@AWS" account has not been reviewed or screened by AWS.
  • Please review this software to ensure it meets your needs before using it.

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.

Details

Submitted By: silverorangemike
AWS Products Used: Amazon SQS
Language(s): PHP
License: Apache License 2.0
Source Control Access: http://cvs.php.net/viewvc.cgi/pear/Services_Amazon_SQS/
Created On: January 15, 2009 6:29 AM GMT
Last Updated: January 23, 2009 12:57 AM GMT
Download

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.
©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.