hubkat/event

parse github webhook events

dev-develop 2016-04-04 00:06 UTC

README

Parse and authenticate github webhooks

<?php

use Hubkat\Event\EventParser;
use Hubkat\Event\EventValidator;

$queue->middleware(new EventParser);
$queue->middleware(new EventValidator($myRepoSecret));

$queue->run($request, $response);

// Parsed will set parsed body to an Event object;
$event = $request->getParsedBody();