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

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zooxsmart/request-id
====================

PHP middleware to add a Request ID header

1.0.2(2y ago)011.7k↑126.2%MITPHPPHP ^8.2

Since Sep 19Pushed 2y agoCompare

[ Source](https://github.com/zooxsmart/request-id)[ Packagist](https://packagist.org/packages/zooxsmart/request-id)[ Docs](https://github.com/zooxsmart/request-id)[ GitHub Sponsors](https://github.com/Lansoweb)[ RSS](/packages/zooxsmart-request-id/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (10)Versions (6)Used By (0)

Request ID Middleware for PHP
=============================

[](#request-id-middleware-for-php)

This middleware adds a Request ID header that can be used to trace back requests (logs).

It uses \[Ramsey\\Uuid() library as default uuid generation.

Usage
-----

[](#usage)

Just add the middleware as one of the first in your application.

For example:

```
$app->pipe(new \LosMiddleware\RequestId\RequestId($options);
```

And the middleware will add a header to the request AND response

```
X-Request-Id: 56CEE969-4D3B-404E-9938-03E769E191CB

```

The options are:

- allow\_override: If it's allowed to override a previouly added request id header. Default: false
- header\_name: Header name. Default: X-Request-Id

### Laminas

[](#laminas)

If you are using [laminas-skeleton](https://github.com/laminas/laminas-skeleton), you can copy `config/los-request-id.global.php.dist` to `config/autoload/los-request-id.global.php` and modify configuration as your needs.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 88.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 ~16 days

Total

4

Last Release

968d ago

PHP version history (2 changes)3.1.x-devPHP ^8.1

1.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/9155a672b863ca2243f6b3d69d61d55bf35ae8e421c1b4f1655293a34d0451ba?d=identicon)[talbuquerque](/maintainers/talbuquerque)

---

Top Contributors

[![Lansoweb](https://avatars.githubusercontent.com/u/2109813?v=4)](https://github.com/Lansoweb "Lansoweb (23 commits)")[![talbuquerque](https://avatars.githubusercontent.com/u/20418669?v=4)](https://github.com/talbuquerque "talbuquerque (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[cakephp/cakephp

The CakePHP framework

8.9k19.5M1.8k](/packages/cakephp-cakephp)[spiral/framework

Spiral, High-Performance PHP/Go Framework

2.1k2.2M66](/packages/spiral-framework)[mcp/sdk

Model Context Protocol SDK for Client and Server applications in PHP

1.5k1.5M88](/packages/mcp-sdk)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)

PHPackages © 2026

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