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

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

jaren-feng/laravel-request-id
=============================

RequestId middleware for Laravel;

v1.0.3(4y ago)082MITPHPPHP &gt;=7.3

Since Apr 28Pushed 4y agoCompare

[ Source](https://github.com/JarenFeng/laravel-request-id)[ Packagist](https://packagist.org/packages/jaren-feng/laravel-request-id)[ RSS](/packages/jaren-feng-laravel-request-id/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (1)Versions (5)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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

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

Total

4

Last Release

1741d ago

PHP version history (2 changes)v1.0PHP &gt;=5.6

1.0.2PHP &gt;=7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12081818?v=4)[贾仁](/maintainers/JarenFeng)[@JarenFeng](https://github.com/JarenFeng)

---

Top Contributors

[![JarenFeng](https://avatars.githubusercontent.com/u/12081818?v=4)](https://github.com/JarenFeng "JarenFeng (2 commits)")

---

Tags

laravelrequest idrequestid

### Embed Badge

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

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

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[hyn/multi-tenant

Run multiple websites using the same laravel installation while keeping tenant specific data separated for fully independant multi-domain setups.

2.6k1.1M9](/packages/hyn-multi-tenant)[firefly-iii/data-importer

Firefly III Data Import Tool.

7545.8k](/packages/firefly-iii-data-importer)[pragmarx/ia-collection

Laravel Illuminate Agnostic Collection

473.4M2](/packages/pragmarx-ia-collection)[chrisguitarguy/request-id-bundle

Add request IDs to to your Symfony requests.

451.4M5](/packages/chrisguitarguy-request-id-bundle)[elfsundae/laravel-hashid-uuid

Shorten UUID encoding for Laravel Hashid.

132.5k](/packages/elfsundae-laravel-hashid-uuid)

PHPackages © 2026

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