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
Requires
- php: ^8.4
- illuminate/contracts: ^11.0||^12.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- code16/pint-config: ^1.2
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.8
- orchestra/testbench: ^10.0.0||^9.0.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- spatie/laravel-health: ^1.37
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.