Laravel Easy Metrics
Published on by Paul Redmond
Laravel Easy Metrics is a package to generate metrics, designed to work with Laravel, Filament, and more. It can help you quickly make metrics like monthly trends, yearly trends, etc. and supports various query types such as min, max, sum, average, and count.
use SaKanjo\EasyMetrics\Metrics\Trend;use App\Models\User; [$labels, $data] = Trend::make(User::class)->countByMonths();
You can use this to easily create Filament v3 widgets (example) to quickly display custom metrics on your application's user dashboards. Out of the box, it supports the following metric types:
- Bar metric
- Doughnut metric
- Line metric
- Pie metric
- Polar metric
- Trend metric
- Value metric
You can learn more about this package, get full installation instructions, and view the source code on GitHub.