Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/buibr/mandrill-webhook-events

Mandrill webhook events handlerr for php
https://github.com/buibr/mandrill-webhook-events

Last synced: 23 days ago
JSON representation

Mandrill webhook events handlerr for php

Awesome Lists containing this project

README

        

# Mandrill-Webhook-Events

Install with composer

```terminal
composer require buibr/MandrillEvents
```

Usage:

```php
use buibr\MandrillEvents\Request;
use buibr\MandrillEvents\Event;
use buibr\MandrillEvents\Exception;

$mandrill = new Request();

$mandrill->events(function(Event $event){

// Do the purpose.
print_r([
$event->getid(),
$event->getStatus()
]);

}, function(Exception $e){

// Do what you want on exception.

});

```