mph2labs / aws-sqs-helper
A simple helper that allows you to get a list of queues and their pending messages
Installs: 307
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/mph2labs/aws-sqs-helper
Requires
- php: ^5.5.9 || ^7.0
- aws/aws-sdk-php: ^3.62
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