PHPackages                             hamza094/storage-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hamza094/storage-monitor

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hamza094/storage-monitor
========================

Package for monitor your storage in laravel application

1.0.2(4y ago)06MITPHPPHP ^8.0

Since Jul 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/hamza094/Storage-Monitor)[ Packagist](https://packagist.org/packages/hamza094/storage-monitor)[ Docs](https://github.com/hamza094/storage-monitor)[ GitHub Sponsors](https://github.com/hamza094)[ RSS](/packages/hamza094-storage-monitor/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)Dependencies (9)Versions (4)Used By (0)

Monitor metrics of Laravel storage
==================================

[](#monitor-metrics-of-laravel-storage)

[![Latest Stable Version](https://camo.githubusercontent.com/09eee2d466311548d867afba4c367a361d0aaf4be71143e6a203e29350e881b4/687474703a2f2f706f7365722e707567782e6f72672f68616d7a613039342f73746f726167652d6d6f6e69746f722f76)](https://packagist.org/packages/hamza094/storage-monitor)[![GitHub Tests Action Status](https://camo.githubusercontent.com/cea161ff6f73f7b530c7ce2ed7a8d9903178d74f055093e5ee38797fc3650797/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f68616d7a613039342f73746f726167652d6d6f6e69746f722f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/hamza094/storage-monitor/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/b9f06f323172b09dbf2ef42b84956d64f1f84d06e4aad6a9aa742dead1debe35/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f68616d7a613039342f73746f726167652d6d6f6e69746f722f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/hamza094/storage-monitor/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/c809b14060c9aef47d7d0303d29591d4faad66ff41ef67131692635f8fa28613/687474703a2f2f706f7365722e707567782e6f72672f68616d7a613039342f73746f726167652d6d6f6e69746f722f646f776e6c6f616473)](https://packagist.org/packages/hamza094/storage-monitor)[![License](https://camo.githubusercontent.com/c1502e56c0c562ebe0dc2f84b2cdd91380661341bec5b73d7832eb5254dbdfda/687474703a2f2f706f7365722e707567782e6f72672f68616d7a613039342f73746f726167652d6d6f6e69746f722f6c6963656e7365)](https://packagist.org/packages/hamza094/storage-monitor)

Description
-----------

[](#description)

laravel-storage-monitor can monitor the usage of the filesystems configured in Laravel. Currently only the amount of files a local storage contains is monitored.

Support us
----------

[](#support-us)

We invest a lot of resources into creating. You can support us.We highly appreciate you.

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

[](#installation)

You can install the package via composer:

```
composer require hamza094/storage-monitor
```

You can publish and run the migrations with:

```
php artisan vendor:publish --provider="Hamza094\StorageMonitor\StorageMonitorServiceProvider" --tag="storage-monitor-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Hamza094\StorageMonitor\StorageMonitorServiceProvider" --tag="storage-monitor-config"
```

You can publish the view file with:

```
php artisan vendor:publish --provider="Hamza094\StorageMonitor\StorageMonitorServiceProvider" --tag="storage-monitor-views"
```

This is the contents of the published config file:

```
return [
	/**
	 * the names of the storage disk you want to monitor
	 */
  'storage_names'=> [
  	'local'
  ],
];
```

Finally, you should schedule the use Hamza094\\StorageMonitor\\Commands\\StorageMonitorCommand to run daily.

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

use \Hamza094\StorageMonitor\Commands\StorageMonitorCommand;

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

Usage
-----

[](#usage)

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

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

```
// in a routes files

Route::storageMonitor('storage-monitor-url');
```

Now, you can see all statics when browsing /storage-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.

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

[](#contributing)

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

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [Hamza](https://github.com/hamza094)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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 ~0 days

Total

3

Last Release

1800d ago

### Community

Maintainers

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

---

Top Contributors

[![hamza094](https://avatars.githubusercontent.com/u/22206717?v=4)](https://github.com/hamza094 "hamza094 (14 commits)")

---

Tags

laravelhamza094storage-monitor

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/hamza094-storage-monitor/health.svg)

```
[![Health](https://phpackages.com/badges/hamza094-storage-monitor/health.svg)](https://phpackages.com/packages/hamza094-storage-monitor)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M46](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[stephenjude/laravel-wallet

A simple wallet implementation for Laravel

26611.9k](/packages/stephenjude-laravel-wallet)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

199.4k](/packages/tarfin-labs-event-machine)

PHPackages © 2026

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