PHPackages                             proemergotech/correlate-php-monolog - 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. proemergotech/correlate-php-monolog

ActiveLibrary

proemergotech/correlate-php-monolog
===================================

Monolog processor for microservices to append correlation id to log messages.

17.0k11PHP

Since Jun 15Pushed 8y ago2 watchersCompare

[ Source](https://github.com/proemergotech/correlate-php-monolog)[ Packagist](https://packagist.org/packages/proemergotech/correlate-php-monolog)[ RSS](/packages/proemergotech-correlate-php-monolog/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (1)

correlate-php-monolog
=====================

[](#correlate-php-monolog)

---

Overview
--------

[](#overview)

It's very difficult to track a request accross the system when we are working with microservices. We came out a solution for that. We generate a unique version 4 uuid for every request and every service passes this id via request header to other services. We call this **correlation ID**.

Packages
--------

[](#packages)

- [proemergotech/correlate-php-laravel](https://github.com/proemergotech/correlate-php-laravel)
    - Middleware for Laravel and Lumen frameworks.
- [proemergotech/correlate-php-psr-7](https://github.com/proemergotech/correlate-php-psr-7)
    - Middleware for any PSR-7 compatible frameworks like [Slim Framework](https://www.slimframework.com/).
- [proemergotech/correlate-php-monolog](https://github.com/proemergotech/correlate-php-monolog)
    - Monolog processor for correlate middlewares (you don't have to use this directly).
- [proemergotech/correlate-php-guzzle](https://github.com/proemergotech/correlate-php-guzzle)
    - Guzzle middleware to add correlation id to every requests.
- [proemergotech/correlate-php-core](https://github.com/proemergotech/correlate-php-core)
    - Common package for correlate id middlewares to provide consistent header naming accross projects.

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

[](#installation)

You should not use this directly.

By the way if you want to use it directly, you can install it via composer.

```
$ composer require proemergotech/correlate-php-monolog
```

Usage
-----

[](#usage)

Generate a correlation id:

```
$processor = new \ProEmergotech\Correlate\Monolog\CorrelateProcessor('x_correlation_id', $correlationId);
$monolog->pushProcessor($processor);
```

Contributing
------------

[](#contributing)

See `CONTRIBUTING.md` file.

Credits
-------

[](#credits)

This package developed by [Soma Szélpál](https://github.com/shakahl/) at [Pro Emergotech Ltd.](https://github.com/proemergotech/).

License
-------

[](#license)

This project is released under the [MIT License](http://www.opensource.org/licenses/MIT).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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://www.gravatar.com/avatar/1b38838e1ee47a244616dc762a8cd39e94e2ca7cdfa14baf17b5efd98f46953a?d=identicon)[shakahl](/maintainers/shakahl)

---

Top Contributors

[![shakahl](https://avatars.githubusercontent.com/u/5264395?v=4)](https://github.com/shakahl "shakahl (8 commits)")

### Embed Badge

![Health badge](/badges/proemergotech-correlate-php-monolog/health.svg)

```
[![Health](https://phpackages.com/badges/proemergotech-correlate-php-monolog/health.svg)](https://phpackages.com/packages/proemergotech-correlate-php-monolog)
```

PHPackages © 2026

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