PHPackages                             org\_heigl/webhookhandler - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. org\_heigl/webhookhandler

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

org\_heigl/webhookhandler
=========================

A monolog-handler that POSTs to a webhook

1.1.1(9y ago)21.8k1MITPHPPHP ^7.0

Since Mar 1Pushed 9y ago1 watchersCompare

[ Source](https://github.com/heiglandreas/WebHookHandler)[ Packagist](https://packagist.org/packages/org_heigl/webhookhandler)[ Docs](https://github.com/heiglandreas/WebHookHandler)[ RSS](/packages/org-heigl-webhookhandler/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (7)Versions (4)Used By (0)

WebHookHandler
==============

[](#webhookhandler)

Log-Hander that POSTs a log-request using HTTPlug

Installation
------------

[](#installation)

```
composer require org_Heigl/webhookhandler
```

Usage
-----

[](#usage)

1. Create the handler

```
    $uriFactory = \Http\Discovery\UriFactoryDiscovery::find();
    $uri = $uriFactory->createUri('http://example.com/');

    $handler = new WebHookHandler(
        $uri,
        Logger::DEBUG,
        \Http\Discovery\HttpAsyncClientDiscovery::find(),
        Http\Discovery\MessageFactoryDiscovery::find()
    );

    $handler->setFrom('WhateverYouWant');
```

2. Add the handler to the logger as you would with any other handler:

```
    $logger = new Logger('example');
    $logger->pushHandler($handler);
```

3. Log as you are used to:

```
    $logger->log('Whatever you want to say');
```

The log-message will be send via a HTTP-POST to the provided URI (in this example to ```[http://example.com/``](http://example.com/%60%60)).

The post-body will be the following json\_encoded array:

```
[
    [message] => The message of the log-entry
    [from] => 'WhateverYouWant'
    [context] => []
    [level] => the set log-level
    [level_name] => the name of the set log-level
    [channel] => Whatever you set as channel name for the logger
    [datetime] => DateTime-Object
    [extra] => []
    [formatted] => The formatted message
 ]

```

That mainly is the array that monolog passes to the handlers…

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

3362d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ae5183aaad2bc7453230704bd6991dc6ccbcd6e775c6a29efdc94350a69f247?d=identicon)[heiglandreas](/maintainers/heiglandreas)

---

Top Contributors

[![heiglandreas](https://avatars.githubusercontent.com/u/91998?v=4)](https://github.com/heiglandreas "heiglandreas (6 commits)")

---

Tags

logloggingwebhookmonolog

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/org-heigl-webhookhandler/health.svg)

```
[![Health](https://phpackages.com/badges/org-heigl-webhookhandler/health.svg)](https://phpackages.com/packages/org-heigl-webhookhandler)
```

###  Alternatives

[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k7](/packages/inpsyde-wonolog)[lefuturiste/monolog-discord-handler

A simple monolog handler for support Discord webhooks

34111.6k4](/packages/lefuturiste-monolog-discord-handler)[logtail/monolog-logtail

Logtail handler for Monolog

233.2M3](/packages/logtail-monolog-logtail)[inpsyde/logzio-monolog

Logz.io integration for Monolog

191.2M1](/packages/inpsyde-logzio-monolog)[mero/yii2-monolog

The Monolog integration for the Yii framework.

42186.1k](/packages/mero-yii2-monolog)[mero/telegram-handler

Monolog handler to send log by Telegram

36113.3k](/packages/mero-telegram-handler)

PHPackages © 2026

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