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. [HTTP &amp; Networking](/categories/http)
4. /
5. timo-reymann/gitlab-webhook-lib

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

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

Simple PHP library for working with gitlab webhooks

1.2.0(7y ago)565521MITPHPPHP ^7.1

Since Mar 3Pushed 5y 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 2w 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

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

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

2623d ago

PHP version history (2 changes)1.0.0PHP ^7.0

1.2.0PHP ^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/21024948?v=4)[Timo Reymann](/maintainers/timo-reymann)[@timo-reymann](https://github.com/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)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M81](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.7k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M87](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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