hubkat/event

parse github webhook events

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

This package is not auto-updated.

Last update: 2024-11-09 18:38:21 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();