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 3w 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 47% 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

1791d 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

[laravel/framework

The Laravel Framework.

34.8k543.8M19.8k](/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.4M295](/packages/laravel-horizon)[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

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

LDAP Authentication &amp; Management for Laravel.

5752.3M18](/packages/directorytree-ldaprecord-laravel)[shlinkio/shlink

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

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

PHPackages © 2026

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