PHPackages                             cmzz/laravel-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. cmzz/laravel-request-id

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

cmzz/laravel-request-id
=======================

RequestId middleware for Laravel;

v1.0.1(9y ago)12621MITPHPPHP &gt;=5.6

Since Apr 28Pushed 9y ago1 watchersCompare

[ Source](https://github.com/cmzz/laravel-request-id)[ Packagist](https://packagist.org/packages/cmzz/laravel-request-id)[ RSS](/packages/cmzz-laravel-request-id/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

laravel-request-id
==================

[](#laravel-request-id)

为请求生成唯一 id 的 laravel 中间件

安装
==

[](#安装)

```
composer require cmzz/laravel-request-id

```

使用
==

[](#使用)

- 在 `app\Http\Kernel.php` 文件的 `$routeMiddleware` 数组中添加:

    'request.id' =&gt; \\Cmzz\\RequestId\\Middleware\\RequestIdMiddleware::class
- 加载中间件

    public function \_\_construct() { $this-&gt;middleware('request.id'); }
- 获得`id`

    public function index(Request $request) { dd($request-&gt;requestId); }

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

3355d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6111715?v=4)[Max](/maintainers/cmzz)[@cmzz](https://github.com/cmzz)

---

Tags

laravelrequest idrequestid

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.9k69.5k](/packages/grumpydictator-firefly-iii)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M307](/packages/laravel-horizon)[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

3.5k78.3k91](/packages/pocketmine-pocketmine-mp)[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5752.3M18](/packages/directorytree-ldaprecord-laravel)[firefly-iii/data-importer

Firefly III Data Import Tool.

8035.8k](/packages/firefly-iii-data-importer)

PHPackages © 2026

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