yogeshjoshi/laravel-time-logger
最新稳定版本:1.0.0
Composer 安装命令:
composer require yogeshjoshi/laravel-time-logger
包简介
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.
README 文档
README
A lightweight Laravel package that helps profile code execution time using RAII-style scoped timing.
Installation
composer require yogeshjoshi/laravel-time-logger
Usage
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();
Publishing Config
php artisan vendor:publish --tag=laravel-time-logger
Config Options
log_channel— Where to log results (default:daily)enabled— Enable or disable timing
You're ready to go!
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-09