PHPackages                             sbsedv/request-id-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sbsedv/request-id-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

sbsedv/request-id-bundle
========================

A Symfony bundle that adds a unique Request-ID.

v1.9.0(5mo ago)3381↓50%MITPHPPHP ^8.2CI passing

Since May 22Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/SBSEDV/request-id-bundle)[ Packagist](https://packagist.org/packages/sbsedv/request-id-bundle)[ RSS](/packages/sbsedv-request-id-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (11)Versions (16)Used By (0)

[![PHPStan](https://github.com/SBSEDV/request-id-bundle/actions/workflows/phpstan.yaml/badge.svg)](https://github.com/SBSEDV/request-id-bundle/actions/workflows/phpstan.yaml)[![PHPCS-Fixer](https://github.com/SBSEDV/request-id-bundle/actions/workflows/phpcsfixer.yaml/badge.svg)](https://github.com/SBSEDV/request-id-bundle/actions/workflows/phpcsfixer.yaml)

sbsedv/request-id-bundle
========================

[](#sbsedvrequest-id-bundle)

A Symfony bundle that adds a unique Request-ID.

In the configuration examples shown below, the default values are used.

---

The generic configuration is as follows:

```
# config/packages/sbsedv_request_id.yaml

sbsedv_request_id:
    generator: "SBSEDV\Bundle\RequestIdBundle\Generator\UuidRequestIdGenerator"
    # generator: "SBSEDV\Bundle\RequestIdBundle\Generator\RequestIdGenerator"
    # generator: 'your_custom_service_id' (must implement RequestIdGeneratorInterface)

    outgoing_http_header: "x-request-id" # http header that will be added
    # outgoing_http_header: false # disables the header creation

    incoming_http_header: false # disabled
    # incoming_http_header: "x-request-id" # request header that contains the Request-ID to use
```

The incoming http-header is only used when the `SBSEDV\Bundle\RequestIdBundle\TrustStrategy\TrustStrategyInterface` service trusts the incoming request.
By default the [PrivateIpTrustStrategy](src/TrustStrategy/PrivateIpTrustStrategy.php) is registered.

---

### **Twig Integration**

[](#twig-integration)

If your application has the [symfony/twig-bundle](https://github.com/symfony/twig-bundle) installed, the `request_id` twig function is registered.

```
{# templates/example.html.twig #}

Request-ID: {{ request_id() }}
```

You can customize the registered twig function name via:

```
# config/packages/sbsedv_request_id.yaml

sbsedv_request_id:
    twig_function_name: "request_id"
```

---

### **Error Renderer**

[](#error-renderer)

By default this bundle decorates the `error_renderer` service and inserts the current request id before the `` tag.

```
# config/packages/sbsedv_request_id.yaml

sbsedv_request_id:
    error_renderer_decorator: false # enabled by default
```

---

### **Monolog Integration**

[](#monolog-integration)

If your application has the [symfony/monolog-bundle](https://github.com/symfony/monolog-bundle) installed, a log processor is registered that adds the request id to each record.

```
# config/packages/sbsedv_request_id.yaml

sbsedv_request_id:
    monolog_processor:
        key: "request_id" # Key to which the request id will be set
    # monolog_processor: false # disables the processor
```

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance74

Regular maintenance activity

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

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 ~99 days

Recently: every ~229 days

Total

14

Last Release

163d ago

PHP version history (3 changes)v1.0.0PHP ^8.0

v1.1.0PHP &gt;=8.1

v1.7.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/b54ebcf5961630f5ac30dc9d15d304a286fe22d14ebe78470c9ca9ad12e285db?d=identicon)[danielburger1337](/maintainers/danielburger1337)

---

Top Contributors

[![danielburger1337](https://avatars.githubusercontent.com/u/48986191?v=4)](https://github.com/danielburger1337 "danielburger1337 (106 commits)")

---

Tags

phprequest-idsymfony-bundle

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sbsedv-request-id-bundle/health.svg)

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

###  Alternatives

[winzou/state-machine-bundle

Bundle for the very lightweight yet powerful PHP state machine

34010.4M15](/packages/winzou-state-machine-bundle)[stfalcon/tinymce-bundle

This Bundle integrates TinyMCE WYSIWYG editor into a Symfony2 project.

2692.9M24](/packages/stfalcon-tinymce-bundle)[sylius/taxonomy-bundle

Flexible categorization system for Symfony.

26388.2k7](/packages/sylius-taxonomy-bundle)[symfony/ai-bundle

Integration bundle for Symfony AI components

30282.3k6](/packages/symfony-ai-bundle)[sylius/addressing-bundle

Addressing and zone management for Symfony applications.

33221.4k3](/packages/sylius-addressing-bundle)[sylius/inventory-bundle

Flexible inventory management for Symfony applications.

19176.7k4](/packages/sylius-inventory-bundle)

PHPackages © 2026

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