PHPackages                             theipster/monolog-utils - 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. theipster/monolog-utils

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

theipster/monolog-utils
=======================

Common features for Monolog.

1.0.0(7y ago)06[1 PRs](https://github.com/theipster/monolog-utils/pulls)MITPHPCI passing

Since Mar 25Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/theipster/monolog-utils)[ Packagist](https://packagist.org/packages/theipster/monolog-utils)[ RSS](/packages/theipster-monolog-utils/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (4)Versions (4)Used By (0)

monolog-utils
=============

[](#monolog-utils)

Common features for Monolog

`RequestHeaderProcessor`
------------------------

[](#requestheaderprocessor)

Takes a PSR-7 request, attempts to extract a specified HTTP header, and then injects the value into the log message.

Example usage:

```
use Monolog\Logger;
use TheIpster\MonologUtils\RequestHeaderProcessor;

// Marshal superglobals into a PSR-7 request.
$request = ...;

// Build logger.
$logger = Logger(...);
$logger->pushProcessor(new RequestHeaderProcessor($request, 'X-My-Custom-Header', 'my_custom_header'));

// Log stuff.
$logger->info('Some message.');
```

`XRequestIdProcessor`
---------------------

[](#xrequestidprocessor)

A specific variation of `RequestHeaderProcessor`, focusing on the `X-Request-ID` HTTP header.

By default, the value is injected as `'request_id'`.

Example usage:

```
use Monolog\Logger;
use TheIpster\MonologUtils\XRequestIdProcessor;

// Marshal superglobals into a PSR-7 request.
$request = ...;

// Build logger.
$logger = Logger(...);
$logger->pushProcessor(new XRequestIdProcessor($request));

// Log stuff.
$logger->info('Some message.');
```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance57

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

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

Unknown

Total

1

Last Release

2653d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29168040?v=4)[Alan Ip](/maintainers/theipster)[@theipster](https://github.com/theipster)

---

Top Contributors

[![theipster](https://avatars.githubusercontent.com/u/29168040?v=4)](https://github.com/theipster "theipster (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/theipster-monolog-utils/health.svg)

```
[![Health](https://phpackages.com/badges/theipster-monolog-utils/health.svg)](https://phpackages.com/packages/theipster-monolog-utils)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k198.8M328](/packages/symfony-monolog-bridge)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

84735.1k](/packages/flow-php-flow)

PHPackages © 2026

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