Download the PHP package achyutn/filament-storage-monitor without Composer
On this page you can find all versions of the php package achyutn/filament-storage-monitor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package filament-storage-monitor
Filament Storage Monitor
A strictly typed, highly expressive Filament plugin to monitor server storage. This package provides a clean, native-feeling dashboard widget that displays disk usage with support for multiple partitions, custom labeling, and dynamic health-based coloring.
Requirements
- PHP: 8.2+
- Filament: 4.x or 5.x
Installation
You can install the package via Composer:
Register the plugin inside your Filament panel:
You can chain several methods to customize the widget's behavior and appearance:
Usage
The plugin automatically registers a dashboard widget once disks are configured.
Adding Disks
You can add disks manually by providing a path, or resolve them directly from your Laravel filesystem configuration.
Manual Registration
You can either use addDisk() for adding a disk through parameters or add() using the Disk DTO:
Laravel Disk Registration
You can also register disks directly from your Laravel filesystem configuration file config/filesystems.php:
Authorization & Visibility
You can control the visibility of the entire widget or individual disks using boolean values or closures. This is useful for restricting sensitive server information to administrators.
Compact Mode
If you want a minimal display that only shows the disk label and free space, you can enable compact mode:
Widget Properties
columnSpan(): Set the widget's column span (e.g., 'full', 'half', or a specific number).columnStart(): Define the starting column for the widget.sort(): Define the widget's order on the dashboard (lower numbers appear first).lazy(): Enable or disable lazy loading of the widget (default istrue).visible(): Control the widget's visibility with a boolean or closure.
Strict Mode
By default, if a disk path cannot be resolved or is misconfigured (e.g., a missing mount), the widget will not crash your Filament panel. Instead, it gracefully catches the error.
If you prefer exceptions to be thrown when a disk is missing or has errors, you can enable throwException() mode:
[!NOTE] This package currently monitors Disk Partitions using native PHP filesystem functions. If you add two different paths that reside on the same partition (e.g.,
/var/www/htmland/var/www/html/laravel-project), they will display the same total/free space because they belong to the same filesystem boundary.Directory-specific size calculation is planned for a future release.
Localization
Filament Storage Monitor includes built-in translations for:
- English
Translations are applied automatically based on your application's current locale.
Missing your language? Feel free to submit a PR to add it!
License
This package is open-sourced software licensed under the MIT license.
Contributing
Contributions are welcome! Please create a pull request or open an issue if you find any bugs or have feature requests.
Support
If you find this package useful, please consider starring the repository on GitHub to show your support.