PHPackages                             lara-middleware/response-time - 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/response-time

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

lara-middleware/response-time
=============================

Laravel 5 Response Time Middleware

0.1.0(11y ago)91.8k2MITPHPPHP &gt;=5.4

Since Mar 11Pushed 11y ago1 watchersCompare

[ Source](https://github.com/lara-middleware/response-time)[ Packagist](https://packagist.org/packages/lara-middleware/response-time)[ RSS](/packages/lara-middleware-response-time/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

response-time
=============

[](#response-time)

[![Packagist version](https://camo.githubusercontent.com/c8e2a3c91b2248b7326fa07e191f8c8e6d436cb25207c05e4029905573cdd54f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6172612d6d6964646c65776172652f726573706f6e73652d74696d652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lara-middleware/response-time)[![Build Status](https://camo.githubusercontent.com/13d7455859911dfe31ede73bbc30cc394fdf619fd8a054f1ad2a5dbc5b0df1c7/68747470733a2f2f7472617669732d63692e6f72672f6c6172612d6d6964646c65776172652f726573706f6e73652d74696d652e737667)](https://travis-ci.org/lara-middleware/response-time)

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

Install
-------

[](#install)

```
$ composer require lara-middleware/response-time
```

or add

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

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

Usage
-----

[](#usage)

#### For all routes

[](#for-all-routes)

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

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

#### For specific routes

[](#for-specific-routes)

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

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

Then, use with routes:

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

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4086d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ebb30b27edbf5cb84ced665085c28277bb54e374b6f64a0461c2748b8b4b432?d=identicon)[chentsulin](/maintainers/chentsulin)

---

Top Contributors

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

---

Tags

responsemiddlewarelaravelduration

### Embed Badge

![Health badge](/badges/lara-middleware-response-time/health.svg)

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

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.8k28.9M627](/packages/spatie-laravel-data)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)

PHPackages © 2026

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