A simple helper class to work with SQS queue
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"
Constructor expects AWS region, key, secret
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
-
getQueueExists
Check if a queue exists
-
getVisibleMessagesForQueue
Get the number of visible messages