PHP code example of church / monitor
1. Go to this page and download the library: Download church/monitor 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/ */
church / monitor example snippets
use Church\Monitor\UDPWorker;
return [
//...
'status-monitor' => [
'enable' => true,
'handler' => UDPWorker::class,
'constructor' => [
'host' => '127.0.0.1',
'port' => 3000,
'interval' => 10,
'site' => 'test.com',
]
]
]
shell
php bin/start start