• Reading time ~ 1 min
  • 20.10.2023

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.


No comments yet
Yurij Finiv

Yurij Finiv

Full stack


Professional Fullstack Developer with extensive experience in website and desktop application development. Proficient in a wide range of tools and technologies, including Bootstrap, Tailwind, HTML5, CSS3, PUG, JavaScript, Alpine.js, jQuery, PHP, MODX, and Node.js. Skilled in website development using Symfony, MODX, and Laravel. Experience: Contributed to the development and translation of MODX3 i...

About author CrazyBoy49z
Ukraine, Lutsk