Skip to content

nelisys/ping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ping

PHP Class for fping command

Requirements

Requires: fping

For RedHat/CentOS 6, 7

[root@centos ~]# yum install epel-release
[root@centos ~]# yum install fping

Installation with Composer

$ composer require nelisys/ping

Usage

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
)