PHPackages                             florianbeer/webhooks - 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. florianbeer/webhooks

ActiveLibrary[API Development](/categories/api)

florianbeer/webhooks
====================

GitLab.com &amp; Github WebHooks system with PHP and YAML.

961PHP

Since Oct 21Pushed 11y ago1 watchersCompare

[ Source](https://github.com/florianbeer/webhooks)[ Packagist](https://packagist.org/packages/florianbeer/webhooks)[ RSS](/packages/florianbeer-webhooks/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

webhooks
========

[](#webhooks)

Gitlab.com &amp; GitHub WebHooks system with PHP and YAML.

Created by [Florian Beer](http://42dev.eu). Forked from [Maxime Valette's webhooks](https://github.com/betacie/webhooks).

Setup
-----

[](#setup)

1. Clone the repo: `git clone git@github.com:florianbeer/webhooks`
2. Install packages: `composer install`
3. Copy the `config.php.dist` file to `config.php` and customize it
4. Add a virtual host pointing to `web/`

All set! You just have to add a custom WebHook in the Service Hooks of your Gitlab.com or GitHub repositories, pointing to `web/hooks.php`.

Hooks file
----------

[](#hooks-file)

The whole point of this script is that you can add custom hooks file specific to GitHub repositories.

It's a simple YAML file that looks like this:

```
emails:
  - john@acmewebsite.com
master:
  - /usr/local/bin/composer install
  - php artisan migrate --env=production

```

So you can easily add or remove commands executed after every push.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/85a163b55b02c4b6c2101393c8b57c005b38bdd119baa977b38950e24efa076d?d=identicon)[florianbeer](/maintainers/florianbeer)

---

Top Contributors

[![florianbeer](https://avatars.githubusercontent.com/u/800047?v=4)](https://github.com/florianbeer "florianbeer (5 commits)")[![maximevalette](https://avatars.githubusercontent.com/u/240136?v=4)](https://github.com/maximevalette "maximevalette (3 commits)")

### Embed Badge

![Health badge](/badges/florianbeer-webhooks/health.svg)

```
[![Health](https://phpackages.com/badges/florianbeer-webhooks/health.svg)](https://phpackages.com/packages/florianbeer-webhooks)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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