PHPackages                             rstgroup/request-id-module - 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. rstgroup/request-id-module

ActiveLibrary

rstgroup/request-id-module
==========================

3.0.0(4y ago)581.1k↓37.9%3PHPPHP ^7.1 || ^8.0

Since Feb 8Pushed 4y ago7 watchersCompare

[ Source](https://github.com/rstgroup/request-id-module)[ Packagist](https://packagist.org/packages/rstgroup/request-id-module)[ RSS](/packages/rstgroup-request-id-module/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (15)Versions (19)Used By (0)

Request Id Module
=================

[](#request-id-module)

[![Build Status](https://camo.githubusercontent.com/e116be6cc5a27de6b25acbbcccfd99137c144dcdedb2b21d3e884eca0089e3f5/68747470733a2f2f7472617669732d63692e6f72672f72737467726f75702f726571756573742d69642d6d6f64756c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rstgroup/request-id-module)

This module provide integration possibility to generate and add `request id` to request/response's header in Laminas applications. If you want more information, how `request id` is generating, check dependent project [php-middleware/request-id](https://github.com/php-middleware/request-id).

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

[](#installation)

```
composer require rstgroup/request-id-module
```

In your Laminas application config add to module list

```
return [
    'modules' => [
        \RstGroup\RequestIdModule::class,
    ],
];
```

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

[](#configuration)

You can also change request header and not to allow override `request id` by request header

```
return [
    'rst_group' => [
        'request_id_module' => [
            'header_name' => 'X-Custom-Request-Id',
            'allow_override'=> false,
        ],
    ],
];
```

### Generator

[](#generator)

In your autoload config based on environment you can change default `PhpUniqidGenerator` to other, for example you can use md5 generator:

```
return [
   'service_manager' => [
       'invokables' => [
           \PhpMiddleware\RequestId\Generator\GeneratorInterface::class => \PhpMiddleware\RequestId\Generator\Md5Generator::class,
       ],
    ],
];
```

Usage
-----

[](#usage)

If you need `request id`, ex. to send request id to another service, you can get it from provider:

```
$requestIdProvider = $serviceLocator->get(\PhpMiddleware\RequestId\RequestIdProviderInterface::class);
$requestId = $requestIdProvider->getRequestId();
```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 56.3% 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 ~215 days

Recently: every ~418 days

Total

10

Last Release

1813d ago

Major Versions

1.3.0 → 2.02019-06-19

2.0 → 3.0.02021-05-31

PHP version history (4 changes)1.0.0PHP &gt;=5.5

1.3.0PHP &gt;=5.6

2.0PHP ^7.1

3.0.0PHP ^7.1 || ^8.0

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/6ffa5d2fe34b04844f854a4fa7ce073c69a500fe6352d69461756abf1b23599d?d=identicon)[rstgroup](/maintainers/rstgroup)

![](https://www.gravatar.com/avatar/4279e55c59d3d453b80b421cb986c4355eeb1825883f85c76e0df3492d0fa51c?d=identicon)[gargi258](/maintainers/gargi258)

---

Top Contributors

[![snapshotpl](https://avatars.githubusercontent.com/u/312655?v=4)](https://github.com/snapshotpl "snapshotpl (9 commits)")[![adrian-ziolkowski](https://avatars.githubusercontent.com/u/11677961?v=4)](https://github.com/adrian-ziolkowski "adrian-ziolkowski (4 commits)")[![michalkopacz](https://avatars.githubusercontent.com/u/194026?v=4)](https://github.com/michalkopacz "michalkopacz (2 commits)")[![pawgre](https://avatars.githubusercontent.com/u/19777629?v=4)](https://github.com/pawgre "pawgre (1 commits)")

---

Tags

phpzend-framework

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[laminas/laminas-cache

Caching implementation with a variety of storage options, as well as codified caching strategies for callbacks, classes, and output

1076.9M130](/packages/laminas-laminas-cache)[laminas/laminas-developer-tools

Module for developer and debug tools for use with laminas-mvc applications.

252.0M33](/packages/laminas-laminas-developer-tools)[laminas-api-tools/api-tools-admin

Laminas API Tools Admin module

13794.3k5](/packages/laminas-api-tools-api-tools-admin)[maglnet/magl-markdown

Provides a ZF2 View Helper to render markdown syntax. It uses third-party libraries for the rendering and you can switch between different renderers.

22178.2k4](/packages/maglnet-magl-markdown)

PHPackages © 2026

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