PHPackages                             idfx/laravel-disk-monitor - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. idfx/laravel-disk-monitor

AbandonedArchivedLibrary[Logging &amp; Monitoring](/categories/logging)

idfx/laravel-disk-monitor
=========================

Monitor metrics of Laravel disk

0.0.3(1y ago)07MITPHPPHP ^8.3CI passing

Since Mar 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dj-idfx/laravel-disk-monitor)[ Packagist](https://packagist.org/packages/idfx/laravel-disk-monitor)[ Docs](https://github.com/dj-idfx/laravel-disk-monitor)[ GitHub Sponsors](https://github.com/dj-idfx)[ RSS](/packages/idfx-laravel-disk-monitor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (13)Versions (6)Used By (0)

Laravel Disk Monitor
====================

[](#laravel-disk-monitor)

[![Latest Version on Packagist](https://camo.githubusercontent.com/30a49a34f188c1ff97356a011883b03445ed1cadf13d6a2b9c4acb5ad7907d27/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696466782f6c61726176656c2d6469736b2d6d6f6e69746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/idfx/laravel-disk-monitor)[![Total Downloads](https://camo.githubusercontent.com/8ebf44bf8f9f0bcba9308b799125570469366774c1fb7d4ee699f51d80529221/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696466782f6c61726176656c2d6469736b2d6d6f6e69746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/idfx/laravel-disk-monitor)[![run-tests](https://github.com/dj-idfx/laravel-disk-monitor/actions/workflows/run-tests.yml/badge.svg?branch=master)](https://github.com/dj-idfx/laravel-disk-monitor/actions/workflows/run-tests.yml)[![fix-php-code-style-issues](https://github.com/dj-idfx/laravel-disk-monitor/actions/workflows/fix-php-code-style-issues.yml/badge.svg?branch=master)](https://github.com/dj-idfx/laravel-disk-monitor/actions/workflows/fix-php-code-style-issues.yml)

Monitors the metrics of disks used by Laravel - Spatie package training.

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

[](#installation)

You can install the package via composer:

```
composer require idfx/laravel-disk-monitor
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="disk-monitor-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="disk-monitor-config"
```

This is the contents of the published config file:

```
return [
    /**
     * Name of the disk you want to monitor.
     */
    'disk_names' => [
        'local',
    ],
];
```

Finally, you should schedule the Spatie\\DiskMonitor\\Commands\\RecordsDiskMetricsCommand to run daily.

```
// in app/Console/Kernel.php

use \Spatie\DiskMonitor\Commands\RecordsDiskMetricsCommand;

class Kernel extends ConsoleKernel
{
    protected function schedule(Schedule $schedule)
    {
       // ...
        $schedule->command(RecordsDiskMetricsCommand::class)->daily();
    }
}
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="disk-monitor-views"
```

Usage
-----

[](#usage)

You can view the amount of files each monitored disk has, in the disk\_monitor\_entries table.

If you want to view the statistics in the browser add this macro to your routes file.

```
// in a routes files

Route::diskMonitor('my-disk-monitor-url');
```

Now, you can see all statics when browsing /my-disk-monitor-url. Of course, you can use any url you want when using the diskMonitor route macro. We highly recommand using the auth middleware for this route, so guests can't see any data regarding your disks.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](.github/SECURITY.md) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [David Carton](https://github.com/dj-idfx)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance48

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.7% 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 ~8 days

Total

4

Last Release

402d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8be95e545ec7fc43fde8abe9c6a50450420612f16cf9f5078d6515cb5804d5e3?d=identicon)[dj-idfx](/maintainers/dj-idfx)

---

Top Contributors

[![dj-idfx](https://avatars.githubusercontent.com/u/35632851?v=4)](https://github.com/dj-idfx "dj-idfx (13 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelidfxdisk-monitor

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/idfx-laravel-disk-monitor/health.svg)

```
[![Health](https://phpackages.com/badges/idfx-laravel-disk-monitor/health.svg)](https://phpackages.com/packages/idfx-laravel-disk-monitor)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[spatie/laravel-slack-alerts

Send a message to Slack

3212.6M4](/packages/spatie-laravel-slack-alerts)[keepsuit/laravel-opentelemetry

OpenTelemetry integration for laravel

142347.8k](/packages/keepsuit-laravel-opentelemetry)[spatie/laravel-error-share

Share your Laravel errors to Flare

43965.6k3](/packages/spatie-laravel-error-share)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[tapp/filament-maillog

Filament plugin to view outgoing mail

2952.6k1](/packages/tapp-filament-maillog)

PHPackages © 2026

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