sy-records/webhooks

WebHook Handler for GitHub, Gitee and GitLab.

Fund package maintenance!
donate.qq52o.me

v1.0.0 2021-11-24 03:00 UTC

This package is auto-updated.

Last update: 2023-01-24 05:48:28 UTC


README

WebHook Handler for GitHub, Gitee and GitLab.

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Usage

use Luffy\WebHook\Payload;
use Luffy\WebHook\Interfaces\HandlerInterface;

// 如果存在实现MessageInterface的request对象,可以传入
// 不传则从全局变量中获取
$payload = new Payload();
/** @var HandlerInterface $handler */
$handler = $payload->getHandler();