PHP code example of gundars / heartbeat

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

    

gundars / heartbeat example snippets


> php vendor/gundars/heartbeat/load.php

Scanning /var/www/public/zend/approot
10102 files loaded in: 0h 2m 49s

if (array_key_exists('heartbeat', $_REQUEST)) {
    $heartBeat = new Heartbeat();
    $heartBeat->load(__DIR__);
}



use Heartbeat\Heartbeat;

$heartBeat = new Heartbeat();
$heartBeat->->load(__DIR__ . '/../../../');

$heartBeat->verbose()->load(__DIR__);

$heartBeat->verbose()->load(__DIR__, true);