PHPackages                             lara-middleware/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. lara-middleware/request-id

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

lara-middleware/request-id
==========================

Laravel 5 RequestId Middleware

2141[1 PRs](https://github.com/lara-middleware/request-id/pulls)PHP

Since Mar 11Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#request-id)

[![Packagist version](https://camo.githubusercontent.com/e939a38e94fc23f96e579aab11064eab43c1fe670dc5ca4eaf9c0a869857b09f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6172612d6d6964646c65776172652f726571756573742d69642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lara-middleware/request-id)[![Build Status](https://camo.githubusercontent.com/b415bf4d0606a2daf3d13a6a681c6a5c231401927024e21e9711701dea008b14/68747470733a2f2f7472617669732d63692e6f72672f6c6172612d6d6964646c65776172652f726571756573742d69642e737667)](https://travis-ci.org/lara-middleware/request-id)

> Set `X-Response-Time` to response header

Install
-------

[](#install)

```
$ composer require lara-middleware/request-id
```

or add

`"lara-middleware/response-time": "dev-master"`

to `package.json` &gt; `"require"`

Usage
-----

[](#usage)

#### For all routes

[](#for-all-routes)

Add `'LaraMiddleware\RequestId\RequestId'` as Kernel's first middleware:

```
// app/Http/Kernel.php
protected $middleware = [
	'LaraMiddleware\RequestId\RequestId',
	....
]
```

#### For specific routes

[](#for-specific-routes)

Add `'response-time' => 'LaraMiddleware\RequestId\RequestId',` to route middleware:

```
// app/Http/Kernel.php
protected $routeMiddleware = [
	'response-time' => 'LaraMiddleware\RequestId\RequestId',
	....
]
```

Then, use with routes:

```
Route::get('some-specific', ['middleware' => 'request-id', function()
{
    //
}]);
```

License
-------

[](#license)

MIT © [C. T. Lin](https://github.com/chentsulin)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3382565?v=4)[C. T. Lin](/maintainers/chentsulin)[@chentsulin](https://github.com/chentsulin)

---

Top Contributors

[![chentsulin](https://avatars.githubusercontent.com/u/3382565?v=4)](https://github.com/chentsulin "chentsulin (5 commits)")

### Embed Badge

![Health badge](/badges/lara-middleware-request-id/health.svg)

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

###  Alternatives

[wythe/logistics

查询快递物流信息

3041.7k1](/packages/wythe-logistics)[sebkln/content-slug

Speaking URL fragments (anchors) - Adds a slug field for human-readable anchors ("domain.com/page/#my-section") to TYPO3 content elements. By default, this anchor is rendered as the header's id attribute.

1284.3k1](/packages/sebkln-content-slug)

PHPackages © 2026

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