PHPackages                             geowrgetudor/disk-metrics - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. geowrgetudor/disk-metrics

ActiveLibrary[File &amp; Storage](/categories/file-storage)

geowrgetudor/disk-metrics
=========================

Monitor disk size, file &amp; directory count for Laravel Pulse

1.3(2y ago)2156.9k↓30.6%3[2 issues](https://github.com/geowrgetudor/disk-metrics/issues)[4 PRs](https://github.com/geowrgetudor/disk-metrics/pulls)MITPHPPHP ^8.1|^8.2|^8.3CI passing

Since Dec 5Pushed 1w ago1 watchersCompare

[ Source](https://github.com/geowrgetudor/disk-metrics)[ Packagist](https://packagist.org/packages/geowrgetudor/disk-metrics)[ Docs](https://github.com/geowrgetudor/disk-metrics)[ RSS](/packages/geowrgetudor-disk-metrics/feed)WikiDiscussions main Synced 2d ago

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

[![Disk Metrics for Laravel Pulse](/disk-metrics.png)](/disk-metrics.png)

Disk Metrics for Laravel Pulse
==============================

[](#disk-metrics-for-laravel-pulse)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ceb36e7a5fd31c1afed7ad0adf332df0a8b0ded0bfad0785bf98fdddf319288b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67656f777267657475646f722f6469736b2d6d6574726963732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/geowrgetudor/disk-metrics)[![GitHub Tests Action Status](https://camo.githubusercontent.com/7e5991024f8570774bd54a7a76041924d51e68a929792a51e59aba60435c7b17/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f67656f777267657475646f722f6469736b2d6d6574726963732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/geowrgetudor/disk-metrics/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/9e422b95fd43481f9f6c03b480a0d4d488444d7591279fe0f4074f7b187c5a44/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f67656f777267657475646f722f6469736b2d6d6574726963732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/geowrgetudor/disk-metrics/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/cfed9290c6566ae2075875862e9eeaf94c0e1ee69c29e1a5c86672bd3624cd7e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67656f777267657475646f722f6469736b2d6d6574726963732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/geowrgetudor/disk-metrics)

Credits to [Aaron Francis](https://github.com/aarondfrancis) for his Pulse tutorial.

This is a Laravel Pulse package that adds metrics for your Local and S3 storage.

- Total Size
- Total Files
- Total Directories (only for `local` driver)

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

[](#installation)

You can install the package via composer:

```
composer require geowrgetudor/disk-metrics
```

You can publish the config file with:

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

This is the contents of the published config file:

```
return [
    /**
     * Track disks defined in filesystems.php config file.
     * Support only 'local' or 's3' driver.
     *
     * You can pass an array ['directories', 'files'] ONLY to a local disk
     * which will determine what to be counted. To count both,
     * you can pass an empty array.
     */
    'disks' => [
        'local' => [],
        // 'public' => [],
        // 's3' => []
    ],

    /**
     * How often (in minutes) should the Laravel Pulse capture data?
     * The value should be greated than 1!
     * Default: 10
     */
    'record_interval' => 10
];
```

Optionally, you can publish the views using

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

Usage
-----

[](#usage)

Register the recorder inside `config/pulse.php`. (If you don't have this file make sure you have published the config file of Larave Pulse using `php artisan vendor:publish --tag=pulse-config`)

```
return [
    // ...

    'recorders' => [
        // Existing recorders...

        \Geow\DiskMetrics\Recorders\DiskRecorder::class => [
            'enabled' => env('GEOW_DISK_METRICS', true),
        ]
    ]
]

```

Publish Laravel Pulse `dashboard.blade.php` view using `php artisan vendor:publish --tag=pulse-dashboard`

Then you can modify the file and add the disk-metrics livewire template.

```

```

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 Vulnerabilities
------------------------

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [George Tudor](https://github.com/geowrgetudor)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

48

—

FairBetter than 93% of packages

Maintenance62

Regular maintenance activity

Popularity38

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% 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 ~33 days

Total

4

Last Release

842d ago

PHP version history (3 changes)1.0PHP ^8.2

1.1PHP ^8.1

1.3PHP ^8.1|^8.2|^8.3

### Community

Maintainers

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

---

Top Contributors

[![geowrgetudor](https://avatars.githubusercontent.com/u/7842657?v=4)](https://github.com/geowrgetudor "geowrgetudor (15 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")

---

Tags

laravel-packagelaravel-pulselaravel-storagestoragelaravelpulsedisk-metrics

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/geowrgetudor-disk-metrics/health.svg)

```
[![Health](https://phpackages.com/badges/geowrgetudor-disk-metrics/health.svg)](https://phpackages.com/packages/geowrgetudor-disk-metrics)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-pdf

Create PDFs in Laravel apps

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

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.6k3](/packages/defstudio-telegraph)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)[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)
