weew / helpers-network
Collection of helper functions for network interactions.
v1.0.1
2016-07-21 11:18 UTC
Requires (Dev)
- phpunit/phpunit: ^4.7
- satooshi/php-coveralls: ^0.6.1
This package is not auto-updated.
Last update: 2024-11-05 23:37:16 UTC
README
Table of contents
Installation
composer require weew/helpers-network
Introduction
This tiny library provides various helper functions for network interaction.
Functions
ping
Ping a host, returns latency if the host could be reached, otherwise returns false
. Note: works ony on Linux
and OS X
.
int|bool ping(string $host, [, int $timeout = 1 [, $ttl = 255]])