PHPackages                             phauthentic/correlation-id-symfony-bundle - 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. phauthentic/correlation-id-symfony-bundle

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

phauthentic/correlation-id-symfony-bundle
=========================================

1.2.0(2y ago)3950MITPHP

Since Mar 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Phauthentic/correlation-id-symfony-bundle)[ Packagist](https://packagist.org/packages/phauthentic/correlation-id-symfony-bundle)[ RSS](/packages/phauthentic-correlation-id-symfony-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (9)Versions (5)Used By (0)

Correlation ID Symfony Bundle
=============================

[](#correlation-id-symfony-bundle)

[![PHP >= 8.1](https://camo.githubusercontent.com/4fa3809f87c8fee607369cc77dc064d826616d28eb87b045ff834d3dbae99119/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d504850266d6573736167653d253545382e3126636f6c6f723d373837434235267374796c653d666f722d7468652d6261646765266c6f676f3d706870)](https://camo.githubusercontent.com/4fa3809f87c8fee607369cc77dc064d826616d28eb87b045ff834d3dbae99119/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d504850266d6573736167653d253545382e3126636f6c6f723d373837434235267374796c653d666f722d7468652d6261646765266c6f676f3d706870)[![phpstan Level 8](https://camo.githubusercontent.com/12b6b9438b73c95050b7fc8811f082842fb9d1ec678d3bf802ead8a4b859440c/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d7068707374616e266d6573736167653d4c6576656c2532303826636f6c6f723d253343434f4c4f52253345267374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/12b6b9438b73c95050b7fc8811f082842fb9d1ec678d3bf802ead8a4b859440c/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d7068707374616e266d6573736167653d4c6576656c2532303826636f6c6f723d253343434f4c4f52253345267374796c653d666f722d7468652d6261646765)[![License: MIT](https://camo.githubusercontent.com/d1f48776f80be8eba6920f4e65d7c4b7d1d13bbc6b779d56ca1ecc08181cd2be/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d4c6963656e7365266d6573736167653d4d495426636f6c6f723d253343434f4c4f52253345267374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/d1f48776f80be8eba6920f4e65d7c4b7d1d13bbc6b779d56ca1ecc08181cd2be/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d4c6963656e7365266d6573736167653d4d495426636f6c6f723d253343434f4c4f52253345267374796c653d666f722d7468652d6261646765)[![Code Quality](https://camo.githubusercontent.com/a3cadac6d6b732cb2cf4e358fe43681a569af292e4192569bd6916f0cc32f085/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f506861757468656e7469632f636f7272656c6174696f6e2d69642d73796d666f6e792d62756e646c652f6d61737465722e7376673f7374796c653d666f722d7468652d6261646765)](https://scrutinizer-ci.com/g/Phauthentic/correlation-id-symfony-bundle/)

This is a Symfony bridge for the framework agnostic [Correlation ID library](https://github.com/Phauthentic/correlation-id).

Features
--------

[](#features)

- Adds the Correlation ID to the Request and Response automatically.
    - Header names can be configured for each separately.
- Provides a messenger stamp and middleware, that will add the CorrelationIDStamp to each message.

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

[](#installation)

```
composer require phauthentic/correlation-id-symfony-bundle
```

Configuration
-------------

[](#configuration)

You can configure three different settings to control the behavior:

- `response_header_name` - The name of the response header for the ID.
- `request_header_name` - The name of the request header for the ID.
- `pass_through` - If the ID from the request should be passed to the response enable this. This is useful if you are dealing with a microservice that is not exposed to the public but gets further actions delegated from the entry point and must retain the original ID.

`config/correlation_id.yaml`:

```
correlation_id:
    response_header_name: 'X-Correlation-ID'
    request_header_name: 'X-Correlation-ID'
    pass_through: false
```

Messenger Middleware
--------------------

[](#messenger-middleware)

The messenger middleware will add the Correlation ID to your messages. Just add the middleware to your bus.

Copyright &amp; License
-----------------------

[](#copyright--license)

Licensed under the [MIT license](LICENSE).

Copyright (c) [Phauthentic](https://github.com/Phauthentic) / Florian Krämer

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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.

###  Release Activity

Cadence

Every ~2 days

Total

3

Last Release

777d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2bef35c03b7865d9cad45c22e54eb6fe8f5fc84a4ff64d47cc0f7a1ef28dbe85?d=identicon)[floriankraemer](/maintainers/floriankraemer)

---

Top Contributors

[![floriankraemer](https://avatars.githubusercontent.com/u/4996022?v=4)](https://github.com/floriankraemer "floriankraemer (12 commits)")

---

Tags

correlation-idmicroservicesphpphp8symfonysymfony-bundletraceability

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phauthentic-correlation-id-symfony-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/phauthentic-correlation-id-symfony-bundle/health.svg)](https://phpackages.com/packages/phauthentic-correlation-id-symfony-bundle)
```

###  Alternatives

[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k189.7M258](/packages/symfony-monolog-bridge)[open-telemetry/opentelemetry-auto-symfony

OpenTelemetry auto-instrumentation for Symfony

551.2M1](/packages/open-telemetry-opentelemetry-auto-symfony)[bugsnag/bugsnag-symfony

Official BugSnag notifier for Symfony applications.

453.0M3](/packages/bugsnag-bugsnag-symfony)

PHPackages © 2026

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