NewWe open-sourced 50+ Laravel packages
Custom AI apps, agents and automation — Roundly ConsultingRoundly
All packages

Require the package. The service provider and the Metrics facade alias are auto-discovered, and there is nothing to migrate — the package reads from your existing models and tables:

composer require roundly-consulting/metrics-for-laravel

Publishing the config is optional — the package merges sensible defaults. metrics-config is the only publish tag; it copies config/metrics.php into your app:

php artisan vendor:publish --tag="metrics-config"

What gets installed

  • RoundlyConsulting\Metrics\MetricsServiceProvider — registers the config, two console commands and a Metrics section in php artisan about.
  • The Metrics facade (RoundlyConsulting\Metrics\Facades\Metrics) — proxies the MetricsManager singleton, which is also bound in the container as metrics.
  • No migrations, routes or views — metrics are computed from queries you already have.

Two small Roundly packages come along as dependencies: enums-for-laravel (the helpers behind the Period and Unit enums) and package-toolkit-for-laravel (the service-provider bootstrap).

Show your open-source love

This package is free and MIT-licensed. If it saves you time, a one-off donation or a Patreon membership keeps it maintained, tested and documented.

More ways to support, including crypto

By donating, you agree to our donation terms.

Want this built into your product?

We integrate our packages into custom Laravel and AI builds. Tell us what you're working on and we'll reply within 48 hours.