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

DavidBadura/git-webhooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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