PHP code example of templatemonster / healthchecks
1. Go to this page and download the library: Download templatemonster/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/ */
templatemonster / healthchecks example snippets
'modules'=>[
.........
'healthchecks' => [
'class' => 'templatemonster\healthchecks\Module',
'checks'=> [
'db',
'cache',
'mongodb',
'rabbitmq' = > 'queue',
'elasticsearch',
'urls' => [
'name1' => 'http://ukr1',
'name2' => 'http://ukr2',
]
,
'custom' => function() {
return (2 + 2 == 4);
};
],
],
.........