normalise webhook events for github, gitlab and bitbucket
composer require davidbadura/git-webhooks
use DavidBadura\GitWebhooks\EventFactory;
use Symfony\Component\HttpFoundation\Request;
$request = Request::createFromGlobals();
$factory = EventFactory::createDefault();
if ($event = $factory->create($request)) {
// ...
}