sy-records / webhooks
WebHook Handler for GitHub, Gitee, Gitea, GitLab and Gogs.
Fund package maintenance!
donate.qq52o.me
sy-records
Requires
- php: >=7.2
- ext-json: *
- guzzlehttp/psr7: ^2.1
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-17 00:44:39 UTC
README
WebHook Handler for GitHub, Gitee, Gitea, GitLab and Gogs.
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();