Download the PHP package net-tools/aws-ses-gui-notifications without Composer
On this page you can find all versions of the php package net-tools/aws-ses-gui-notifications. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download net-tools/aws-ses-gui-notifications
More information about net-tools/aws-ses-gui-notifications
Files in net-tools/aws-ses-gui-notifications
Package aws-ses-gui-notifications
Short Description Composer library to query AWS SES notifications (SQS queues)
License MIT
Informations about the package aws-ses-gui-notifications
net-tools/aws-ses-gui-notifications
PHP and Javascript interface to query AWS SES notifications
When using AWS SES, it's possible to set bounce and delivery feedback to be published through a SNS topic. When a SQS queue has subscribed to the SNS topic, it will contain any bounce or delivery messages created during SES send action.
This library abstracts most of AWS API-related stuff and deals with GUI output.
How to use
Client-side Javascript
First, include the javascript api.js.min
file in the web page.
Then, create the API object and execute the request, providing any required parameters :
nodeId
is a string set to a DOM tree elementid
value ; this element will contain the outputtype
is a string setting the kind of SES data we fetch : Delivery or BouncecssClass
may be set with any CSS class names, making it possible to custom styling the output table
Remarks :
- SQS queues may not return all messages in a single API call ; so it's necessary to perform several request to be sure to have all data.
- Create a server-side PHP file that will perform the AWS API call through our library and return the messages to the Javascript class.
Server-side PHP
The server-side PHP file (refered above as /path/to/a/script.php
must call our API to send the request to AWS SQS :
Please note that the CredentialProvider::ini
call must define a path to a credentials file, and that $region
must be a string setting the correct AWS region.
The credentials file must contains the following lines, with your key and secrets :