sunkan/git-webhooks

normalise webhook events for github, gitlab and bitbucket

2.0.0 2020-04-01 13:53 UTC

This package is auto-updated.

Last update: 2024-11-29 06:41:19 UTC


README

Build Status

normalise webhook events for github, gitlab and bitbucket

Installation

composer require davidbadura/git-webhooks

Example

use DavidBadura\GitWebhooks\EventFactory;

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

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