buibr/mandrill-webhook-events-php

Mandrill webhook events handlers

dev-master 2019-09-24 06:37 UTC

This package is auto-updated.

Last update: 2024-10-24 17:47:35 UTC


README

Install with composer

composer require buibr/MandrillEvents

Usage:

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.

});