davidbadura / git-webhooks
该包已被弃用且不再维护。未建议替代包。
标准化github、gitlab和bitbucket的webhook事件
1.2.1
2017-01-25 09:54 UTC
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
标准化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)) { // ... }