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. [HTTP &amp; Networking](/categories/http)
4. /
5. rstgroup/request-id-module

ActiveLibrary[HTTP &amp; Networking](/categories/http)

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

3.0.0(5y ago)582.3k↓56.9%3PHPPHP ^7.1 || ^8.0CI failing

Since Feb 8Pushed 5y 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 today

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 87% 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

1859d 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://avatars.githubusercontent.com/u/2773776?v=4)[alabme](/maintainers/alabme)[@Alabme](https://github.com/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.2k53.6k13](/packages/magento-community-edition)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

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

Flexible routing system for HTTP and console applications

3522.5M76](/packages/laminas-laminas-router)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

5.1k5.2k](/packages/shlinkio-shlink)[fastly/magento2

Fastly CDN Module for Magento 2.4.x

1564.4M1](/packages/fastly-magento2)[kokspflanze/bjy-authorize

Laminas\\Acl based firewall system for Mezzio dispatch protection

20199.4k4](/packages/kokspflanze-bjy-authorize)

PHPackages © 2026

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