PHP code example of indigerd / healthchecks

1. Go to this page and download the library: Download indigerd/healthchecks 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/ */

    

indigerd / healthchecks example snippets


'modules'=>[
        .........
        'healthchecks' => [
            'class' => 'indigerd\healthchecks\Module',
            'checks'=> [
                'db',
                'cache',
                'custom' => function() {
                    return (2 + 2 == 4);
                };
            ],
        ],
        .........