Download the PHP package donald1597/disk-usage without Composer
On this page you can find all versions of the php package donald1597/disk-usage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download donald1597/disk-usage
More information about donald1597/disk-usage
Files in donald1597/disk-usage
Package disk-usage
Short Description A package to display and manage disk usage.
License MIT
Informations about the package disk-usage
Disk Usage Package for Laravel
Disk Usage Package is a Laravel package designed to monitor and manage disk usage within your Laravel application. It provides an intuitive interface to view and manage disk usage statistics, making it easier to keep track of your project's storage.
Features
- View the total size of the Laravel project directory.
- Monitor server disk space including total, free, and used space.
- Visualize disk usage with interactive charts.
- Detailed view of directory contents including file size and type.
- Option to delete files and directories directly from the interface.
Installation
-
Add the Package to Your Project
You can install the package via Composer. Run the following command in your Laravel project directory:
-
Add the Service Provider to your
config/app.php:Open your
config/app.phpfile and add the following line to theprovidersarray: -
Publishing the Configuration
-
Make sure to set these variables in your .env file: for example
- Set Up Queues for Notifications
Notification
When disk usage exceeds the defined thresholds, an email notification will be sent to the address specified in DISK_USAGE_NOTIFICATION_EMAIL.
To handle email notifications asynchronously, you need to configure Laravel queues. Follow these steps:
Configure the Queue Driver
In your .env file, set up the queue driver:
You can also choose other queue drivers like redis or sqs depending on your setup.
Create a Queue Table
If you are using the database queue driver, create the necessary tables by running:
- Run the Queue Worker
Start the queue worker to process the queued jobs:
Usage
After installation, you can access the disk usage dashboard via the route: disk-usage
Uninstallation
To uninstall the package:
-
Remove the package via Composer:
-
Remove the Service Provider from
config/app.php:Open your
config/app.phpfile and remove the following line from theprovidersarray: - Clean up any published assets or configurations if necessary.
Contributing
Feel free to contribute to this package by opening issues or submitting pull requests.
License
This package is licensed under the MIT License.