PHPackages                             timo-reymann/gitlab-webhook-lib - 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. timo-reymann/gitlab-webhook-lib

AbandonedArchivedLibrary

timo-reymann/gitlab-webhook-lib
===============================

Simple PHP library for working with gitlab webhooks

1.2.0(7y ago)565521MITPHPPHP ^7.1

Since Mar 3Pushed 4y agoCompare

[ Source](https://github.com/timo-reymann/gitlab-webhook-lib)[ Packagist](https://packagist.org/packages/timo-reymann/gitlab-webhook-lib)[ RSS](/packages/timo-reymann-gitlab-webhook-lib/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (3)Dependencies (1)Versions (3)Used By (1)

GitLab Webhook Library
======================

[](#gitlab-webhook-library)

[![Version](https://camo.githubusercontent.com/f32f4b5948cccbcbba058378e6dd33715ec444ca1216463221f456d4a2904fc8/68747470733a2f2f706f7365722e707567782e6f72672f74696d6f2d7265796d616e6e2f6769746c61622d776562686f6f6b2d6c69622f762f737461626c65)](https://packagist.org/packages/timo-reymann/gitlab-webhook-lib)[![Build Status](https://camo.githubusercontent.com/ecd500c83d54633832f0cd4daf02a00d64507a1befc181f0ae6b86c6e4636397/68747470733a2f2f6170692e7472617669732d63692e6f72672f74696d6f2d7265796d616e6e2f6769746c61622d776562686f6f6b2d6c69622e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/timo-reymann/gitlab-webhook-lib)

What is this?
-------------

[](#what-is-this)

Simple library for PHP to work with Gitlab webhooks in a easy and natural way

Usage
-----

[](#usage)

### Installation

[](#installation)

Install using composer: `composer require timo-reymann/gitlab-webhook-lib`

### Documentation

[](#documentation)

For PHP class documentation please visit [timo-reymann.github.io/gitlab-webhook-lib](https://timo-reymann.github.io/gitlab-webhook-lib/TimoReymann/GitlabWebhookLibrary.html)

### Use in your scripts

[](#use-in-your-scripts)

First create a webhook object and pass your secret token

```
$hook = new \TimoReymann\GitlabWebhookLibrary\Core\Webhook(
  new \TimoReymann\GitlabWebhookLibrary\Token\SecretToken('mySuperSecretToken')
);
```

To evaluate the header for your secret token and the event. Be aware that this method may throw an exception if the request is not valid!

```
$hook->parse();
```

Finally you can work with the result, if you would like to, the "expensive" members are internally cached after you first call them. So you don't have hidden performance bottlenecks. The resulting object is based on the gitlab event type passed via header.

```
$hook->getResult()
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.1% 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 ~418 days

Total

2

Last Release

2578d ago

PHP version history (2 changes)1.0.0PHP ^7.0

1.2.0PHP ^7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/c5f281321b687565ef17886f5277df9cf2cb791938160247fd989871eaca19d5?d=identicon)[timo-reymann](/maintainers/timo-reymann)

---

Top Contributors

[![timo-reymann](https://avatars.githubusercontent.com/u/21024948?v=4)](https://github.com/timo-reymann "timo-reymann (34 commits)")[![cavemanlu](https://avatars.githubusercontent.com/u/853589?v=4)](https://github.com/cavemanlu "cavemanlu (1 commits)")

---

Tags

gitlabphpphp7webhooks

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/timo-reymann-gitlab-webhook-lib/health.svg)

```
[![Health](https://phpackages.com/badges/timo-reymann-gitlab-webhook-lib/health.svg)](https://phpackages.com/packages/timo-reymann-gitlab-webhook-lib)
```

PHPackages © 2026

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