DavidBadura / git-webhooks

normalise webhook events for github and gitlab
MIT License
10 stars 8 forks source link
git git-webhook github github-webhooks gitlab gitlab-webhook php

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