PHP code example of vesh95 / heartbeat

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

    

vesh95 / heartbeat example snippets


use Vesh95\Heartbeat\HealthcheckRunner;
use Vesh95\Heartbeat\Check\CheckInterface;

$runner = new HealthcheckRunner();
$runner->append(new CheckInterface());
$results = $runner->run();