weew/helpers-network

Collection of helper functions for network interactions.

v1.0.1 2016-07-21 11:18 UTC

This package is not auto-updated.

Last update: 2024-12-18 00:12:32 UTC


README

Build Status Test Coverage Version Licence

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]])