1. Go to this page and download the library: Download raitocz/pinger 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/ */
raitocz / pinger example snippets
// As object:
$pinger = new Pinger();
$pinger->setUrls(array('http://localhost/'))
->setRepeat(100)
->setWait(1)
->start();
// As static method:
Pinger::run(array('http://localhost/'), 100, 1);