code16/laravel-health-checks

Various checks for spatie/laravel-health

Fund package maintenance!
Code 16

Installs: 89

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/code16/laravel-health-checks

v1.0.1 2026-02-16 13:55 UTC

This package is auto-updated.

Last update: 2026-02-16 14:35:32 UTC


README

You can install the package via composer:

composer require code16/laravel-health-checks

Usage

Declare this check in your HealthCheckServiceProvider:

PhpUploadConfigCheck::new()
    // in Mb, If you want to check GB values, use number * 1024 (i.e: 8 * 1024 will match a 8G config value)
    ->setPostMaxSizeInMb(8) 
    ->setMaxUploadSizeInMb(200)
    // By default, the check will allow a greater value, if you want a strict check, you'll have to set ->allowGreaterValue(allow: false)
    ->allowGreaterValue(allow: true, max: 200), // Define a maximum value

Testing

composer test

Credits

License

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