Skip to content

Prakort/laravel-wellness

Repository files navigation

A Laravel Wellness to monitor storage files

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages