Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

Latest commit

 

History

History
31 lines (23 loc) · 1.07 KB

README.md

File metadata and controls

31 lines (23 loc) · 1.07 KB

git-webhooks

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

normalise webhook events for github, gitlab and bitbucket

Installation

composer require davidbadura/git-webhooks

Example

use DavidBadura\GitWebhooks\EventFactory;
use Symfony\Component\HttpFoundation\Request;

$request = Request::createFromGlobals();
$factory = EventFactory::createDefault();

if ($event = $factory->create($request)) {
    // ...
}