wuxue107 / git-webhooks
normalise webhook events for github, gitlab and bitbucket
2.0.0
2022-10-16 08:56 UTC
Requires
- php: ^7.2
- ext-json: *
- symfony/http-foundation: *
Requires (Dev)
- phpunit/phpunit: ^8.0
This package is not auto-updated.
Last update: 2024-05-27 02:29:26 UTC
README
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)) {
// ...
}