aria-php / aria-mailgun-webhooks
Tools for interfacing and parsing mailgun webhook events
1.0.1
2020-10-28 15:46 UTC
Requires
- mailgun/mailgun-php: ^3.1
Requires (Dev)
- phpunit/phpunit: ^9.4
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2024-12-04 18:01:27 UTC
README
This is a wrapper / helper library for parsing mailgun webhook events.
Just a stub for now, but will likely be built on.
This is an ARIA wrapper around both the legacy PHPMailer, and Swiftmailer.
Installation
composer require aria-php/aria-mailgun-webhooks
from within your project.
Usage
Creating the parser:
use ARIA\mailgun\webhooks\Parser;
$parser = Parser::parser($api_key);
Parsing out an event
$event = $parser->parse($_POST);
Signatures will be validated at this point, and an exception thrown if things don't match up.