https://github.com/sy-records/webhooks
WebHook Handler for GitHub, Gitee and GitLab.
https://github.com/sy-records/webhooks
git gitee github gitlab php webhooks
Last synced: 6 months ago
JSON representation
WebHook Handler for GitHub, Gitee and GitLab.
- Host: GitHub
- URL: https://github.com/sy-records/webhooks
- Owner: sy-records
- License: mit
- Created: 2021-11-08T02:31:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-09-16T22:31:08.000Z (almost 3 years ago)
- Last Synced: 2024-10-05T07:05:46.155Z (over 1 year ago)
- Topics: git, gitee, github, gitlab, php, webhooks
- Language: PHP
- Homepage:
- Size: 36.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webhooks
WebHook Handler for GitHub, Gitee, Gitea, GitLab and Gogs.
[](https://packagist.org/packages/sy-records/webhooks)
[](https://packagist.org/packages/sy-records/webhooks)
[](https://packagist.org/packages/sy-records/webhooks)
[](https://packagist.org/packages/sy-records/webhooks)
[](https://packagist.org/packages/sy-records/webhooks)
## Install
```bash
composer require sy-records/webhooks
```
## Usage
```php
use Luffy\WebHook\Payload;
use Luffy\WebHook\Interfaces\HandlerInterface;
// 如果存在实现MessageInterface的request对象,可以传入
// 不传则从全局变量中获取
$payload = new Payload();
/** @var HandlerInterface $handler */
$handler = $payload->getHandler();
```