2017 © Pedro Peláez
 

library response-time

PHP middleware to add a Response Time header

image

los/response-time

PHP middleware to add a Response Time header

  • Friday, March 16, 2018
  • by Lansoweb
  • Repository
  • 1 Watchers
  • 2 Stars
  • 4,707 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 19 % Grown

The README.md

Response Time Middleware for PHP

This middleware adds a Response Time header, (*1)

Usage

Just add the middleware as one of the first in your application., (*2)

For example:, (*3)

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

And the middleware will add a header, (*4)

X-Request-Time: 49,96ms

The options are: * header_name: Header name. Default: X-Response-Time, (*5)

Zend Expressive

If you are using expressive-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., (*6)

The Versions

12/10 2016

1.0.0

1.0.0.0 https://github.com/lansoweb/response-time

PHP middleware to add a Response Time header

  Sources   Download

MIT

The Requires

 

12/10 2016

1.x-dev

1.9999999.9999999.9999999-dev https://github.com/lansoweb/response-time

PHP middleware to add a Response Time header

  Sources   Download

MIT

The Requires

 

12/10 2016

dev-develop

dev-develop https://github.com/lansoweb/response-time

PHP middleware to add a Response Time header

  Sources   Download

MIT

The Requires