prakort/laravel-wellness

Laravel Wellness monitors the application services

v1.0.0 2025-01-01 21:08 UTC

This package is auto-updated.

Last update: 2025-01-01 21:49:45 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package contains a Laravel Health File Size Monitoring: Identify files that exceed specified size limits to prevent unexpected storage overages.

Installation

You can install the package via composer:

composer require prakort/laravel-wellness

Usage

use Spatie\Health\Facades\Health;
use prakort\LaravelWellness\FileSizeCheck;

Health::checks([
    FileSizeCheck::new()
        ->disk('s3')
        ->warningThreshold(5)
        ->errorThreshold(10)
        ->fileTypes(['png', 'pdf', 'txt'])
]);

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.