sy-records/webhooks

WebHook Handler for GitHub, Gitee, Gitea, GitLab and Gogs.

v1.1.0 2023-09-16 22:30 UTC

This package is auto-updated.

Last update: 2024-12-17 01:04:41 UTC


README

WebHook Handler for GitHub, Gitee, Gitea, GitLab and Gogs.

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

Install

composer require sy-records/webhooks

Usage

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

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