teknasyon-teknoloji / aws-ses-notification
Process SES Notifications
Installs: 33 332
Dependents: 2
Suggesters: 0
Security: 0
Stars: 9
Watchers: 3
Forks: 4
Open Issues: 1
Requires
- php: >=8.0
- aws/aws-php-sns-message-validator: ~1.1
- aws/aws-sdk-php: ~3.22
Requires (Dev)
- phpmd/phpmd: @stable
- phpunit/phpunit: 9.5.*
- squizlabs/php_codesniffer: 3.*@stable
This package is auto-updated.
Last update: 2024-11-21 14:43:08 UTC
README
Handle AWS Ses notifications e.g. bounced, complaint or delivery.
Requirements
- PHP 8.0+
- aws/aws-sdk-php
- aws/aws-php-sns-message-validator
Usage
- Create your Handler class that implements \Teknasyon\AwsSesNotification\IHandler
- Set AWS Ses notification url at AWS Panel
- Add notification handle to your dispatcher
<?php use Teknasyon\AwsSesNotification; use Aws\Sns\MessageValidator; try { \Teknasyon\AwsSesNotification\Dispatcher::handle($myhandlerObj, new MessageValidator()); } catch (\Exception $e) { //Error handling } // ...
Security
You should protect your notification url e.g. token check from GET param, IP restriction if possible
Installation
You can use Composer to install :
composer require teknasyon-teknoloji/aws-ses-notifications
Or you can add to composer.json file :
"teknasyon-teknoloji/aws-ses-notification": "dev-master"
TODO
- HANDLER EXAMPLES
Contributing
You can contribute by forking the repo and creating pull requests. You can also create issues or feature requests.
Disclaimer
Your AWS SES and SNS usage my be charged. Please check AWS pricing pages.
License
This project is licensed under the MIT license. LICENSE
file can be found in this repository.