PHP code example of code16 / laravel-health-checks

1. Go to this page and download the library: Download code16/laravel-health-checks library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

code16 / laravel-health-checks example snippets


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