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 today

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

28

—

LowBetter than 52% of packages

Maintenance45

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

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

455d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/35632851?v=4)[dj-idfx](/maintainers/dj-idfx)[@dj-idfx](https://github.com/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-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M167](/packages/spatie-laravel-health)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M101](/packages/dedoc-scramble)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)[keepsuit/laravel-opentelemetry

OpenTelemetry integration for laravel

167558.4k1](/packages/keepsuit-laravel-opentelemetry)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

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