Skip to content

Lansoweb/response-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

45d8548 · Sep 19, 2023

History

23 Commits
Sep 19, 2023
Sep 19, 2023
Sep 19, 2023
Nov 20, 2015
Sep 19, 2023
Nov 20, 2015
Sep 19, 2023
Sep 19, 2023
Sep 19, 2023
Sep 19, 2023
May 3, 2021

Repository files navigation

Response Time Middleware for PHP

This middleware adds a Response Time header

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

If you are using 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.

About

PHP middleware to add a response time header to the response

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages