Quantcast
Channel: Laravel News
Viewing all articles
Browse latest Browse all 1788

Laravel Easy Metrics

$
0
0

Laravel Easy Metrics


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.

The post Laravel Easy Metrics appeared first on Laravel News.

Join the Laravel Newsletter to get Laravel articles like this directly in your inbox.


Viewing all articles
Browse latest Browse all 1788

Trending Articles