---
title: "Installation — Metrics for Laravel | Roundly"
description: "Install via Composer — the provider and the Metrics facade are auto-discovered, there are no migrations, and the config is optional."
url: https://roundly-consulting.com/open-source/docs/metrics-for-laravel/installation
language: en
---

[All packages](https://roundly-consulting.com/open-source.md)

[Metrics for Laravel](https://roundly-consulting.com/open-source/docs/metrics-for-laravel.md)

# Installation

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:

```bash
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:

```bash
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](https://roundly-consulting.com/support-us.md)

By donating, you agree to our [donation terms](https://roundly-consulting.com/donation-terms.md).

[Support our open source work (opens in a new tab)](https://donate.stripe.com/dRmeVe8FX5PF1Qd9pXcEw00) [Join us on Patreon (opens in a new tab)](https://www.patreon.com/cw/roundly)

## 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.

[Get a quote in 48 hours](https://roundly-consulting.com/contact.md) [Browse all packages](https://roundly-consulting.com/open-source/docs/metrics-for-laravel.md)
