davidbadura/git-webhooks

该包已被弃用且不再维护。未建议替代包。

标准化github、gitlab和bitbucket的webhook事件

1.2.1 2017-01-25 09:54 UTC

This package is auto-updated.

Last update: 2020-11-10 17:32:59 UTC


README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

标准化github、gitlab和bitbucket的webhook事件

安装

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