New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

foothing/laravel-performance-tracker

46 2
Install
composer require foothing/laravel-performance-tracker
Latest Version:0.1.0
Laravel:5
License:MIT
Last Updated:Sep 21, 2016
Links: GitHub  ·  Packagist
Maintainer: brazorf

Laravel Performance Tracker

A simple Middleware to track pageload time for Laravel 5.

Install and setup

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.

License

MIT

Related Packages

bugsnag/bugsnag-laravel

Official Bugsnag notifier for Laravel applications.

39,447,583 904
holidaypirates/bugsnag-lumen

Bugsnag notifier for Lumen applications.

1,220 7
oilstone/logging

A PSR\Log wrapper for handling static log classes that can be enabled/disabled o...

8,344 2

Version History

Version Released Laravel License
0.1.0 ~5.0 MIT