PHP Library for Amazon SQS

Sample Code & Libraries>PHP Library for Amazon SQS
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.

PHP Library for Amazon SQS


Submitted By: Elena@AWS
AWS Products Used: Amazon SQS
Language(s): PHP
License: Apache License 2.0
Created On: March 1, 2008 1:28 AM GMT
Last Updated: September 29, 2010 12:42 AM GMT

IMPORTANT: This library has been deprecated and will no longer be updated. We recommend developers switch to the new AWS SDK for PHP, where you'll continue to get new feature updates and bug fixes. To learn more about the AWS SDK for PHP, and for support with migration, see

About this Library

  • Based on the 2009-02-01 API version.

What's New?

  • 2009-04-08:
    • Support for access control API
  • 2008-12-24:
    • Fix notice output (no side effects, just noise)
  • 2008-12-23:
    • Url encoding fix (some calls with signature version 2 were affected)
    • 2008-12-17: Support for signature version 2, https endpoint


    Package Content

    Directory Overview
    src Source distribution of library.

    Quick Start

    Library comes with code samples for each available service API. To get started with the library, follow these steps:
    1. Extract the file into a working directory.
    2. Go to src/Amazon/SQS/Samples subdirectopry
    3. Edit

      • Set AWS Access Key ID and AWS Secret Access Key
      •     define('AWS_ACCESS_KEY_ID', '<Your Access Key ID>');
            define('AWS_SECRET_ACCESS_KEY', '<Your Secret Access Key>');

      • Open CreateQueueSample.php sample, and find part:
      •  // @TODO: set request. Action can be passed as Amazon_SQS_Model_CreateQueueRequest
         // object or array of parameters
         // invokeCreateQueue($service, $request);

      • And set QueueName parameter:
      •  invokeCreateQueue($service, array('QueueName' => 'MyQueue'));

    4. Run CreateQueue sample:
    5.    php src/Amazon/SQS/Samples/CreateQueueSample.php
    6. You should see the output similar to the following:

    7.     CreateQueueResponse

    8. Experiment with samples. When ready, install library to your php include path and use it


    Happy coding!

    Comments, Questions or Feedback

    If you have any comments, questions or feedback on the library, please visit the Amazon SQS discussion forums.


    very buggy
    The code doesn't run without fixing missing syntax: * Amazon SQS PHP5 Library * Generated: Thu Dec 18 05:33:50 PST 2008
    addictech on December 20, 2008 5:13 AM GMT
    We are temporarily not accepting new comments.
    ©2017, Amazon Web Services, Inc. or its affiliates. All rights reserved.