This composer package that provides a simple and efficient way to measure and analyze the execution time and speed of database queries in your Laravel application.
It works seamlessly with Redis as the underlying database to store and retrieve query metrics.
You can install the package via Composer:
composer require usmonaliyev/laravel-metrics
- php:
^7.4|^8.1
- predis/predis:
^2.1
After installing the package, you'll need to publish the configuration file.
php artisan vendor:publish --provider="Usmonaliyev\LaravelMetrics\LaravelMetricServiceProvider" --tag="config"
This will create a metric.php
file in your config directory.
Open this file and customize the configuration options as needed.
If you discover any issues or want to contribute, feel free to create an issue or submit a pull request. Your contributions are always welcome!
The Laravel Metrics package is open-sourced software licensed under the MIT license.