PHPackages                             ajaaleixo/laravel-middleware-correlation-id - 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. ajaaleixo/laravel-middleware-correlation-id

ActiveLibrary

ajaaleixo/laravel-middleware-correlation-id
===========================================

Laravel Package to use a Correlation ID Middleware

v1.0.4(6y ago)25.1k↓66.7%3[2 PRs](https://github.com/ajaaleixo/laravel-middleware-correlation-id/pulls)MITPHPPHP &gt;=7.0

Since Mar 5Pushed 3y ago2 watchersCompare

[ Source](https://github.com/ajaaleixo/laravel-middleware-correlation-id)[ Packagist](https://packagist.org/packages/ajaaleixo/laravel-middleware-correlation-id)[ Docs](https://github.com/ajaaleixo/laravel-middleware-correlation-id)[ RSS](/packages/ajaaleixo-laravel-middleware-correlation-id/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (4)Versions (10)Used By (0)

[![Codacy Badge](https://camo.githubusercontent.com/d0389b1cc77f667de3d77534a6ec50f31f845ac9cc5d26c1446253b42c9aa2b6/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3662376338383331633639323439353838663562623333616464353331336365)](https://www.codacy.com/app/ajaaleixo/laravel-middleware-correlation-id?utm_source=github.com&utm_medium=referral&utm_content=ajaaleixo/laravel-middleware-correlation-id&utm_campaign=Badge_Grade)[![CircleCI](https://camo.githubusercontent.com/c6a48302d30ee9f7093c60daca6499aca40ff81f6eb99212b66195fa55149557/68747470733a2f2f636972636c6563692e636f6d2f67682f616a61616c6569786f2f6c61726176656c2d6d6964646c65776172652d636f7272656c6174696f6e2d69642f747265652f6d61737465722e7376673f7374796c653d737667)](https://circleci.com/gh/ajaaleixo/laravel-middleware-correlation-id/tree/master)[![Downloads](https://camo.githubusercontent.com/fb8f4b2dfbebf07f5ae3c8e6a15df1ce76882223e4bb3e8edf64a1da14b11382/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616a61616c6569786f2f6c61726176656c2d6d6964646c65776172652d636f7272656c6174696f6e2d6964)](https://packagist.org/packages/ajaaleixo/laravel-middleware-correlation-id)

Laravel Correlation ID Middleware
=================================

[](#laravel-correlation-id-middleware)

Supports L5.5+

This package offers you a way of adding a correlation id output on Laravel Logger based on a sent Header. Inspired by [this repo](https://github.com/proemergotech/correlate-php-laravel) it has:

- all the functionality to set macros on a Request and Push a Monolog Processor
- adds a configuration file to override settings
- adds proper tests
- enables usage for recent Laravel versions (5.5+)

Install
-------

[](#install)

### Add Service provider

[](#add-service-provider)

Open your config/app.php and insert the following in providers key:

```
Ajaaleixo\Middleware\CorrelationId\CorrelationIdServiceProvider::class,

```

### Run Publish command

[](#run-publish-command)

```
php artisan vendor:publish --provider="Ajaaleixo\Middleware\CorrelationId\CorrelationIdServiceProvider"

```

### Edit your settings

[](#edit-your-settings)

Open `config/correlationid.php`.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 90.5% 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 ~160 days

Total

5

Last Release

2351d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a41382db932b9bcff615c0e912f86276643dbead7a2dfebe53fabc330753205?d=identicon)[ajaaleixo](/maintainers/ajaaleixo)

---

Top Contributors

[![ajaaleixo](https://avatars.githubusercontent.com/u/6562222?v=4)](https://github.com/ajaaleixo "ajaaleixo (19 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

correlation-idlaravellaravel-packagetracingmiddlewarelaraveltracingcorrelation-id

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ajaaleixo-laravel-middleware-correlation-id/health.svg)

```
[![Health](https://phpackages.com/badges/ajaaleixo-laravel-middleware-correlation-id/health.svg)](https://phpackages.com/packages/ajaaleixo-laravel-middleware-correlation-id)
```

###  Alternatives

[open-telemetry/opentelemetry-auto-laravel

OpenTelemetry auto-instrumentation for Laravel

531.9M8](/packages/open-telemetry-opentelemetry-auto-laravel)[barryvdh/laravel-stack-middleware

Stack Middleware for Laravel

43415.4k5](/packages/barryvdh-laravel-stack-middleware)[json-mapper/laravel-package

The JsonMapper package for Laravel

25170.4k3](/packages/json-mapper-laravel-package)[moesif/moesif-laravel

Moesif Collection/Data Ingestion Middleware for Laravel

1065.8k](/packages/moesif-moesif-laravel)

PHPackages © 2026

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