PHPackages                             ihah/webhook-notifier - 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. ihah/webhook-notifier

ActiveLibrary[API Development](/categories/api)

ihah/webhook-notifier
=====================

Allows to receive Gitlab/Github webhooks for Laravel application and send notifications to the Slack/Discord channels

09PHPCI failing

Since Nov 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ihah/webhook-notifier)[ Packagist](https://packagist.org/packages/ihah/webhook-notifier)[ RSS](/packages/ihah-webhook-notifier/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)DependenciesVersions (1)Used By (0)

Very short description of the package
=====================================

[](#very-short-description-of-the-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f904f3c34b2dd923484fa781c2fd5f0b11a538132bbe36f4b8c87347d9692bd1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696861682f776562686f6f6b2d6e6f7469666965722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ihah/webhook-notifier)[![Total Downloads](https://camo.githubusercontent.com/c569aa397c352e017ce3231b3af19c50358ed5de729dd11b45482023397feaaf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696861682f776562686f6f6b2d6e6f7469666965722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ihah/webhook-notifier)

Webhook-notifier package allows to receive GitLab/Github webhook payloads for Laravel application and send notifications to multiple Slack/Discord channels based on payload type.

One configuration to control all process, easy to setup.

Packages status: ***under development***
========================================

[](#packages-status-under-development)

Installation
============

[](#installation)

You can install the package via composer:

```
composer require ihah/webhook-notifier
```

**Publish config file**

```
php artisan vendor:publish --provider="Ihah\WebhookNotifier\WebhookNotifierServiceProvider" --tag=config
```

Usage
=====

[](#usage)

Gitlab + Slack
--------------

[](#gitlab--slack)

By default gitlab notification webhook for slack is:

```
domain.com/gitlab/notify/slack

```

1. Define `GITLAB_TOKEN` in .env file.

- `GITLAB_TOKEN` is used to check if request came from GitLab.
- `GITLAB_TOKEN` should be set as webhook **secret token** in GitLab [More information about GitLab webhooks](https://docs.gitlab.com/ee/user/project/integrations/webhooks.html).

2. Config `../config/webhook-notifier.php` file

- Slack incomming webook urls should be always defined in .env file because they contain secret to your channel and can be blocked if they are leaked. [More information about Slack Incoming Webhooks](https://api.slack.com/messaging/webhooks)
- `all` array - send all supported notifications to defined channels
- `push` array - send all push notifications to defined channels

```
// .../config/webhook-notifier.php

'gitlab_token' => env('GITLAB_TOKEN'),
    'slack' => [
        'prefix' => 'gitlab/notify/',
        'middleware'=> [],
        'channels' => [
            'all' => [
                [
                    'name' => 'ricks-gitlab-channel',
                    'url' => env('RICKS_SLACK_CHANNEL_URL')
                ]
            ],

            'push' => [
                [
                    'name' => 'toms-gitlab-channel',
                    'url' => env('TOMS_SLACK_CHANNEL_URL')
                ],
                [
                    'name' => 'jams-gitlab-channel',
                    'url' => env('JAMS_SLACK_CHANNEL_URL')
                ],
            ]
        ],
    ],
```

### Testing

[](#testing)

```
composer test
```

RoadMap:
--------

[](#roadmap)

**GitLab:**

- GitLab push event
- GitLab issue event
- GitLab merge request event

**GitHub:**

- GitHub push event
- GitHub issue event
- GitHub merge request event

**Slack:**

- GitLab push notification to multiple channels
- GitLab issue notification to multiple channels
- GitLab merge notification to multiple channels
- GitHub push notification to multiple channels
- GitHub issue notification to multiple channels
- GitHub merge notification to multiple channels

**Discord**:

- GitLab push notification to multiple channels
- GitLab issue notification to multiple channels
- GitLab merge notification to multiple channels
- GitHub push notification to multiple channels
- GitHub issue notification to multiple channels
- GitHub merge notification to multiple channels

**Other:**

- Support events and listeners
- Send notifications using queues

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Ernestas](https://github.com/ihah)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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://avatars.githubusercontent.com/u/35690113?v=4)[Ernestas](/maintainers/ihah)[@ihah](https://github.com/ihah)

---

Top Contributors

[![ihah](https://avatars.githubusercontent.com/u/35690113?v=4)](https://github.com/ihah "ihah (9 commits)")

### Embed Badge

![Health badge](/badges/ihah-webhook-notifier/health.svg)

```
[![Health](https://phpackages.com/badges/ihah-webhook-notifier/health.svg)](https://phpackages.com/packages/ihah-webhook-notifier)
```

###  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)
