buibr/mandrill-webhook-events-php

Mandrill webhook 事件处理器

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

This package is auto-updated.

Last update: 2024-09-24 17:36:01 UTC


README

使用 composer 安装

composer require buibr/MandrillEvents

用法

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.

});