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. hamza094/storage-monitor

ActiveLibrary

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 3d 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 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

1750d 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

[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)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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