PHPackages                             los/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. los/response-time

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

los/response-time
=================

PHP middleware to add a Response Time header

2.2.3(2y ago)664.1k↑28.6%1MITPHPPHP ^8.1

Since Nov 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Lansoweb/response-time)[ Packagist](https://packagist.org/packages/los/response-time)[ Docs](https://github.com/lansoweb/response-time)[ GitHub Sponsors](https://github.com/Lansoweb)[ RSS](/packages/los-response-time/feed)WikiDiscussions 2.3.x Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (16)Used By (0)

Response Time Middleware for PHP
================================

[](#response-time-middleware-for-php)

This middleware adds a Response Time header

Usage
-----

[](#usage)

Just add the middleware as one of the first in your application.

For example:

```
$app->pipe(new \Los\ResponseTime\ResponseTime($options);
```

And the middleware will add a header

```
X-Request-Time: 49,96ms

```

The options are:

- header\_name: Header name. Default: X-Response-Time

### Mezzio

[](#mezzio)

If you are using [mezzio-skeleton](https://github.com/mezzio/mezzio-skeleton), you can copy `config/los-response-time.global.php.dist` to `config/autoload/los-response-time.global.php` and modify configuration as your needs.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

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

Recently: every ~217 days

Total

10

Last Release

972d ago

Major Versions

0.9.0 → 1.0.02016-10-12

1.x-dev → 2.x-dev2018-03-16

PHP version history (4 changes)0.9.0PHP ^5.5|^7.0

1.0.0PHP ^7.0

2.1.x-devPHP &gt;= 7.4

2.2.3PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b54dffc1ebcb317a0cf825a781ab6c5f30980e9abd0d0a3f9c68830cb05c014?d=identicon)[Lansoweb](/maintainers/Lansoweb)

---

Top Contributors

[![Lansoweb](https://avatars.githubusercontent.com/u/2109813?v=4)](https://github.com/Lansoweb "Lansoweb (21 commits)")

---

Tags

middlewarephpresponse-time

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[jaxon-php/jaxon-core

Jaxon is an open source PHP library for easily creating Ajax web applications

73142.3k25](/packages/jaxon-php-jaxon-core)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[mezzio/mezzio-authentication-oauth2

OAuth2 (server) authentication middleware for Mezzio and PSR-7 applications.

28483.0k2](/packages/mezzio-mezzio-authentication-oauth2)[mezzio/mezzio-authentication

Authentication middleware for Mezzio and PSR-7 applications

121.6M26](/packages/mezzio-mezzio-authentication)

PHPackages © 2026

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