Laravel Time Logger is a lightweight and developer-friendly profiling utility for Laravel. It helps measure and log code execution time effortlessly, making performance debugging simple and efficient.
yogeshjoshi/laravel-time-logger is a Laravel package for laravel time logger is a lightweight and developer-friendly profiling utility for laravel. it helps measure and log code execution time effortlessly, making performance debugging simple and efficient..
It currently has 0 GitHub stars and 6 downloads on Packagist (latest version 1.0.0).
Install it with composer require yogeshjoshi/laravel-time-logger.
Discover more Laravel packages by yogeshjoshi
or browse all Laravel packages to compare alternatives.
Last updated
A lightweight Laravel package that helps profile code execution time using RAII-style scoped timing.
composer require yogeshjoshi/laravel-time-logger
using class
use LaravelTimeLogger\LaravelTimeLogger;
function exportCSV() {
$timer = new LaravelTimeLogger("Export CSV");
$timer->start();
// do work here
$timer->stop();
}
using helper function
$timer = timerlog('Helper test');
$timer->start();
// do work here
$timer->stop();
php artisan vendor:publish --tag=laravel-time-logger
log_channel — Where to log results (default: daily)enabled — Enable or disable timingYou're ready to go!