PHPackages                             tajul/php-github-webhook - 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. [API Development](/categories/api)
4. /
5. tajul/php-github-webhook

ActiveLibrary[API Development](/categories/api)

tajul/php-github-webhook
========================

Php package for github webhook.

v0.1.1(8y ago)1161MITPHP

Since Aug 3Pushed 8y ago1 watchersCompare

[ Source](https://github.com/tajulasri/php-github-webhook)[ Packagist](https://packagist.org/packages/tajul/php-github-webhook)[ RSS](/packages/tajul-php-github-webhook/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Github webhook php
------------------

[](#github-webhook-php)

```
composer install
```

Sample of usages

```
use Illuminate\Http\Request;

$webhook = (new \WebhookHanlder\GithubWebhook(new Request))
  ->setCredentials(['secret_key' => 'my-secret-key'])
  ->handle()
  ->getResponse();
```

What is happen behind request during webhook? Lets simulate using fake payload transport via curl on localhost:8080.

```
php -S localhost:8080
```

Generate mock secret key and payload
------------------------------------

[](#generate-mock-secret-key-and-payload)

```
php -r "echo hash_hmac('sha1','{"data": "sample_response"}','testing');"
```

set credentials by using **testing** in this case.
--------------------------------------------------

[](#set-credentials-by-using-testing-in-this-case)

```
use Illuminate\Http\Request;

$webhook = (new \WebhookHanlder\GithubWebhook(new Request))
  ->setCredentials(['secret_key' => 'my-secret-key'])
  ->handle()
  ->getResponse();
```

Get signature validation
------------------------

[](#get-signature-validation)

```
$webhook = (new GithubWebhook(new Request))
    ->setCredentials(['secret_key' => 'testing'])
    ->handle()
    ->passes();
```

Request via curl by sending fake header and payload.
----------------------------------------------------

[](#request-via-curl-by-sending-fake-header-and-payload)

```
 curl -X POST localhost:8080 \
 -H 'X-Hub-Signature: sha1=40cf35581833746c71a4c3c53886fe2a2e207577' \
 -H 'Content-type: application/json' -d '{"data": "sample_response"}'
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.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 ~21 days

Total

2

Last Release

3234d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c4cfd2de990b9195bd43e51fe0ed98327a47655854e6c2c8e95688b61832ea6f?d=identicon)[tajul\_asri](/maintainers/tajul_asri)

---

Top Contributors

[![tajulasri](https://avatars.githubusercontent.com/u/6530495?v=4)](https://github.com/tajulasri "tajulasri (25 commits)")[![iqmal852](https://avatars.githubusercontent.com/u/12695347?v=4)](https://github.com/iqmal852 "iqmal852 (1 commits)")

---

Tags

githubphpwebhook

### Embed Badge

![Health badge](/badges/tajul-php-github-webhook/health.svg)

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

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.3k3](/packages/defstudio-telegraph)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[resend/resend-laravel

Resend for Laravel

1222.7M9](/packages/resend-resend-laravel)[flat3/lodata

OData v4.01 Producer for Laravel

99351.7k](/packages/flat3-lodata)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1348.7k1](/packages/jasara-php-amzn-selling-partner-api)

PHPackages © 2026

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