PHPackages                             fidum/laravel-dashboard-vapor-metrics-tile - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. fidum/laravel-dashboard-vapor-metrics-tile

ActiveLibrary[Admin Panels](/categories/admin)

fidum/laravel-dashboard-vapor-metrics-tile
==========================================

Vapor environment, cache and database metrics tiles for laravel dashboard

4.2.0(1y ago)2084MITPHPPHP ^8.1CI failing

Since May 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/fidum/laravel-dashboard-vapor-metrics-tile)[ Packagist](https://packagist.org/packages/fidum/laravel-dashboard-vapor-metrics-tile)[ Docs](https://github.com/fidum/laravel-dashboard-vapor-metrics-tile)[ GitHub Sponsors](https://github.com/dmason30)[ RSS](/packages/fidum-laravel-dashboard-vapor-metrics-tile/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (6)Versions (17)Used By (0)

Vapor Metrics Tile
==================

[](#vapor-metrics-tile)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6b66a5366fb70c2cb0f3f1a78e5f7bb1734e8126ddc696499756a3a6eced400a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666964756d2f6c61726176656c2d64617368626f6172642d7661706f722d6d6574726963732d74696c652e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/fidum/laravel-dashboard-vapor-metrics-tile)[![GitHub Workflow Status (with branch)](https://camo.githubusercontent.com/e60a4e703ad790fbf99f05133dc272bd6dc8076cb193e9f855aca0078c69c35b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f666964756d2f6c61726176656c2d64617368626f6172642d7661706f722d6d6574726963732d74696c652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e267374796c653d666f722d7468652d6261646765)](https://github.com/fidum/laravel-dashboard-vapor-metrics-tile/actions?query=workflow%3Arun-tests+branch%3Amaster)[![Codecov](https://camo.githubusercontent.com/98dc0c36f44f28bbef48dad5bcd53e7198827f6c852f7bceda84564557563812/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f666964756d2f6c61726176656c2d64617368626f6172642d7661706f722d6d6574726963732d74696c653f6c6f676f3d636f6465636f76266c6f676f436f6c6f723d7768697465267374796c653d666f722d7468652d6261646765)](https://codecov.io/gh/fidum/laravel-dashboard-vapor-metrics-tile)[![Twitter Follow](https://camo.githubusercontent.com/3ecd70148f9f16e2e0d66fcde3428926f1df4d6797ea463473ccf60dcdf7758a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f666f6c6c6f772d25343064616e6d61736f6e6d702d3144413146323f6c6f676f3d74776974746572267374796c653d666f722d7468652d6261646765)](https://twitter.com/danmasonmp)

Displays metrics for **all** of your laravel vapor projects - caches, databases and environment metrics and charts included!

[![Preview](docs/preview.png)](docs/preview.png)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require fidum/laravel-dashboard-vapor-metrics-tile
```

Usage
-----

[](#usage)

In the `dashboard` config file, you must add this configuration in the `tiles` key. There are separate settings for `caches`, `databases` and `environments`.

```
// in config/dashboard.php
return [
    // ...
    'tiles' => [
        'vapor_metrics' => [
            'secret' => env('VAPOR_API_TOKEN'), // optional: Uses `VAPOR_API_TOKEN` env by default
            'refresh_interval_in_seconds' => 300, // optional: Default: 300 seconds (5 minutes)
            'period' => '7d', // optional: 1m, 5m, 30m, 1h, 8h, 1d (default), 3d, 7d, 1M
            'caches' => [ // Leave empty if you don't want any cache tiles
                'My Cache Instance' => [ // Key will be used as the title of the displayed tile
                    'cache_id' => 222, // required: The id of your vapor cache instance
                    'period' => '7d', // optional: 1m, 5m, 30m, 1h, 8h, 1d (default), 3d, 7d, 1M
                    'refresh_interval_in_seconds' => 60, // optional: override individual tile
                    'secret' => null, // :optional: override individual tile
                ],
                'Another Cache' => ['cache_id' => 333]
            ],
            'databases' => [ // Leave empty if you don't want any database tiles
                'My Database' => [ // Key will be used as the title of the displayed tile
                    'database_id' => 555, // required: The id of your vapor database instance
                    'period' => '7d', // optional: 1m, 5m, 30m, 1h, 8h, 1d (default), 3d, 7d, 1M
                    'refresh_interval_in_seconds' => 60, // optional: override individual tile
                    'secret' => null, // :optional: override individual tile
                ],
                'Another Database' => ['database_id' => 444]
            ],
            'environments' => [ // Leave empty if you don't want any envrionment tiles
                'My Staging Website' => [ // Key will be used as the title of the displayed tile
                    'project_id' => 1111, // required: The id of your vapor project
                    'environment' => 'staging', // optional: Defaults to 'production'
                    'period' => '7d', // optional: 1m, 5m, 30m, 1h, 8h, 1d (default), 3d, 7d, 1M
                    'refresh_interval_in_seconds' => 60, // optional: override individual tile
                    'secret' => null, // :optional: override individual tile
                ],
                'My Production Website' => ['project_id' => 1111],
            ],
        ],
    ],
];
```

In `app\Console\Kernel.php` you should schedule the below to run every `x` minutes. Only add the commands where you have configured the related tiles above.

```
// in app/console/Kernel.php
protected function schedule(Schedule $schedule)
{
    $schedule->command(\Fidum\VaporMetricsTile\Commands\FetchVaporCacheMetricsCommand::class)->everyThirtyMinutes();
    $schedule->command(\Fidum\VaporMetricsTile\Commands\FetchVaporDatabaseMetricsCommand::class)->everyThirtyMinutes();
    $schedule->command(\Fidum\VaporMetricsTile\Commands\FetchVaporEnvironmentMetricsCommand::class)->everyThirtyMinutes();
}
```

In your dashboard view you can use one or all or multiple of each of these components. The `tileName` and `position`attributes are **required**. The `tileName` attribute value needs to match the name specified in the config:

```

```

For charts an additional `type` value should be provided to select which chart to show:

- `cli-avg-duration`: Average CLI Invocation Duration (ms)
- `cli-invocations-total`: CLI Invocations
- `http-requests-avg-duration`: Average HTTP Request Duration (ms)
- `http-requests-total`: HTTP Requests
- `queue-avg-duration`: Average Queue Invocation Duration (ms)
- `queue-invocations-total`: Queue Invocations

The charts use [fidum/laravel-dashboard-chart-tile](https://github.com/fidum/laravel-dashboard-chart-tile) internally. You can use the below additional properties for further customisation:

- `height` sets the height of the chart, depending on your dashboard layout you may need to adjust this (defaults to `100%`).
- `refreshIntervalInSeconds` use this to override the refresh rate of an individual tile (defaults to above configured setting)

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email :author\_email instead of using the issue tracker.

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance44

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~117 days

Recently: every ~230 days

Total

16

Last Release

442d ago

Major Versions

0.0.1 → 1.0.02020-05-06

1.x-dev → 2.0.02020-09-10

2.x-dev → 3.0.02022-08-19

3.0.1 → 4.0.02023-12-02

PHP version history (3 changes)0.0.1PHP ^7.4

2.0.1PHP ^7.4|^8.0

4.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce00db7f776e4eedafb4c929c8996ce27544888a84fbe2a210f32f0eb38aa794?d=identicon)[dmason30](/maintainers/dmason30)

---

Top Contributors

[![dmason30](https://avatars.githubusercontent.com/u/20278756?v=4)](https://github.com/dmason30 "dmason30 (110 commits)")

---

Tags

chartdashboardlaravellaravel-vaporspatietilesvaporvapor-metrics-tilevaporfidumlaravel-dashboardlaravel-dashboard-vapor-metrics-tile

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fidum-laravel-dashboard-vapor-metrics-tile/health.svg)

```
[![Health](https://phpackages.com/badges/fidum-laravel-dashboard-vapor-metrics-tile/health.svg)](https://phpackages.com/packages/fidum-laravel-dashboard-vapor-metrics-tile)
```

###  Alternatives

[fidum/laravel-dashboard-chart-tile

Generic chart tiles for laravel dashboard

16234.7k1](/packages/fidum-laravel-dashboard-chart-tile)[orrison/cumulus

Import DNS records from Laravel Vapor into Cloudflare

3817.1k](/packages/orrison-cumulus)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
