Package Data | |
---|---|
Maintainer Username: | brazorf |
Maintainer Contact: | fabrizio.ranieri@gmail.com (brazorf) |
Package Create Date: | 2016-09-21 |
Package Last Update: | 2016-09-21 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:03:05 |
Package Statistics | |
---|---|
Total Downloads: | 46 |
Monthly Downloads: | 4 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
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