DavidBadura / git-webhooks

normalise webhook events for github and gitlab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)) {
    // ...
}

About

normalise webhook events for github and gitlab

License:MIT License


Languages

Language:PHP 100.0%