foothing/laravel-performance-tracker is a Laravel package.
It currently has 2 GitHub stars and 46 downloads on Packagist (latest version 0.1.0).
Install it with composer require foothing/laravel-performance-tracker.
Discover more Laravel packages by foothing
or browse all Laravel packages to compare alternatives.
Last updated
A simple Middleware to track pageload time for Laravel 5.
Add composer dependency in require or require-dev
"require": [
"foothing/laravel-performance-tracker": "~0.1"
]
Add the service provider in your config/app.php
'providers' => [
// ...
Foothing\Laravel\PTracker\ServiceProvider::class
]
Finally, enable Middleware in your app/Http/Kernel.php
protected $middleware = [
// ...
\Foothing\Laravel\PTracker\Middleware\SimplePerformanceMiddleware::class
];
You're done. In this first implementation the page load time is written to your logfile. Time is in seconds.
MIT