Middleware to calculate the response time (in miliseconds) and save it into the X-Response-Time header.
- PHP >= 7.2
- A PSR-7 http library
- A PSR-15 middleware dispatcher
This package is installable and autoloadable via Composer as middlewares/response-time.
composer require middlewares/response-time
Dispatcher::run([
new Middlewares\ResponseTime()
]);
Please see CHANGELOG for more information about recent changes and CONTRIBUTING for contributing details.
The MIT License (MIT). Please see LICENSE for more information.