code16/laravel-health-checks
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.
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
648,266,899
9,701
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
429,221,767
607
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.0.3 | 8.4.*| | ^11.0| | MIT | |
| v1.0.2 | ^8.4 | ^11.0|| | MIT | |
| v1.0.1 | ^8.4 | ^11.0|| | MIT | |
| v1.0.0 | ^8.4 | ^11.0|| | MIT |