davidbadura / git-webhooks
normalise webhook events for github, gitlab and bitbucket
Installs: 1 004
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 3
Forks: 7
Open Issues: 5
Type:lib
Requires
- php: ^5.4 || ^7.0
- symfony/http-foundation: ^2.7 || ^3.0
Requires (Dev)
- phpunit/phpunit: ^4.7
- symfony/var-dumper: ^2.7 || ^3.0
This package is auto-updated.
Last update: 2020-11-10 17:32:59 UTC
README
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)) { // ... }