mph2labs/aws-sqs-helper

There is no license information available for the latest version (dev-master) of this package.

A simple helper that allows you to get a list of queues and their pending messages

dev-master 2018-08-01 07:04 UTC

This package is not auto-updated.

Last update: 2020-01-10 17:16:17 UTC


README

A simple helper class to work with SQS queue

install

Best to install using composer

composer install mph2labs/aws-sqs-helper

alternatively you can also add the following to your composer.json

"mph2labs/aws-sqs-helper": "dev-master"

usage

Constructor expects AWS region, key, secret

available properties

The class has a number of properties containing data from SQS

  • data

    Associative array with a list of your queues and their values. The full queue endpoint is the array key and the number of visible messages and queue name is returned.

  • csv

    A csv version of each queue that can be used for exporting

available methods

  • getQueueExists

    Check if a queue exists

  • getVisibleMessagesForQueue

    Get the number of visible messages