PHP Class for fping command
Requires: fping
For RedHat/CentOS 6, 7
[root@centos ~]# yum install epel-release
[root@centos ~]# yum install fping
$ composer require nelisys/ping
Example php file.
// test-ping.php
require 'vendor/autoload.php';
use Nelisys\Ping;
$host = new Ping('127.0.0.1');
var_dump($host->ping());
Test run php file.
$ php test-ping.php
Array
(
[127.0.0.1] => 0.14
)