1. Go to this page and download the library: Download cbednarski/pulse 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/ */
cbednarski / pulse example snippets
$pulse = new cbednarski\Pulse\Pulse();
$pulse->add("Check that config file is readable", function(){
return is_readable('/path/to/your/config/file');
});
, $config['memcache_port'])){
return false;
}
$key = 'healthcheck_test_key'
$msg = 'memcache is working';
$memcache->set($key, $msg);
return $memcache->get($key) === $msg;
});
$pulse->addWarning("Verify connectivity to youtube", function() {
$youtube = new YoutubeClient();
return $youtube->isUp();
});