PHPackages                             swop/github-webhook-security-checker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. swop/github-webhook-security-checker

Abandoned → [swop/github-webhook](/?search=swop%2Fgithub-webhook)Library[Security](/categories/security)

swop/github-webhook-security-checker
====================================

Library which deals with incoming GitHub web hooks requests (signature validation &amp; payload parsing)

v3.1(5y ago)11225[1 issues](https://github.com/Swop/github-webhook-security-checker/issues)MITPHPPHP ^7.2|^8.0

Since Nov 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Swop/github-webhook-security-checker)[ Packagist](https://packagist.org/packages/swop/github-webhook-security-checker)[ RSS](/packages/swop-github-webhook-security-checker/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (3)Versions (9)Used By (0)

Github WebHook
==============

[](#github-webhook)

[![Build Status](https://github.com/Swop/github-webhook/workflows/tests/badge.svg)](https://github.com/Swop/github-webhook/actions)

This library offers a set of tools which could become handy when dealing with GitHub web hook requests.

Installation
------------

[](#installation)

The recommended way to install this library is through [Composer](https://getcomposer.org/):

```
composer require "swop/github-webhook"

```

Usage
-----

[](#usage)

### Payload signature checking

[](#payload-signature-checking)

The `SignatureValidator` will verify if the incoming GitHub web hook request is correctly signed.

```
use Swop\GitHubWebHook\Security\SignatureValidator;

$validator = new SignatureValidator();

/** @var \Psr\Http\Message\ServerRequestInterface $request */
if ($validator->validate($request, 'secret')) {
    // Request is correctly signed
}
```

### GitHub event object creation

[](#github-event-object-creation)

The `GitHubEventFactory` can build GitHubEvent objects representing the GitHub event.

```
use Swop\GitHubWebHook\Event\GitHubEventFactory;

$factory = new GitHubEventFactory();

/** @var \Psr\Http\Message\ServerRequestInterface $request */
$gitHubEvent = $factory->buildFromRequest(RequestInterface $request);

$gitHubEvent->getType(); // Event type
$gitHubEvent->getPayload(); // Event deserialized payload
```

Contributing
------------

[](#contributing)

See [CONTRIBUTING](https://github.com/Swop/github-webhook/blob/master/CONTRIBUTING.md) file.

Original Credits
----------------

[](#original-credits)

- [Sylvain MAUDUIT](https://github.com/Swop) ([@Swop](https://twitter.com/Swop)) as main author.

License
-------

[](#license)

This library is released under the MIT license. See the complete license in the bundled [LICENSE](https://github.com/Swop/github-webhook/blob/master/LICENSE) file.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 76.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~208 days

Recently: every ~363 days

Total

8

Last Release

2010d ago

Major Versions

v1.1 → 2.0.x-dev2016-11-21

v2.0 → v3.02020-10-25

PHP version history (2 changes)v1.0PHP &gt;=5.4

v3.0PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b11bc8aee9703f3ce974c4fb4698be1d390a21e1a51ac03b61fa7397980b40ad?d=identicon)[Swop](/maintainers/Swop)

---

Top Contributors

[![Swop](https://avatars.githubusercontent.com/u/545340?v=4)](https://github.com/Swop "Swop (16 commits)")[![lyrixx](https://avatars.githubusercontent.com/u/408368?v=4)](https://github.com/lyrixx "lyrixx (2 commits)")[![ptejada](https://avatars.githubusercontent.com/u/253405?v=4)](https://github.com/ptejada "ptejada (2 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

securitygithubwebhook

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/swop-github-webhook-security-checker/health.svg)

```
[![Health](https://phpackages.com/badges/swop-github-webhook-security-checker/health.svg)](https://phpackages.com/packages/swop-github-webhook-security-checker)
```

###  Alternatives

[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k434.8M1.3k](/packages/phpseclib-phpseclib)[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[spatie/laravel-csp

Add CSP headers to the responses of a Laravel app

8519.6M19](/packages/spatie-laravel-csp)[swop/github-webhook

Library which deals with incoming GitHub web hooks requests (signature validation &amp; payload parsing)

1119.5k4](/packages/swop-github-webhook)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
