PHPackages                             weew/helpers-network - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. weew/helpers-network

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

weew/helpers-network
====================

Collection of helper functions for network interactions.

v1.0.1(9y ago)016MITPHP

Since Jan 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/weew/helpers-network)[ Packagist](https://packagist.org/packages/weew/helpers-network)[ RSS](/packages/weew-helpers-network/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Network helpers
===============

[](#network-helpers)

[![Build Status](https://camo.githubusercontent.com/15403741fb91a84664b40193c56a9974569dc21ffc9cf24e626829febe76b851/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f776565772f68656c706572732d6e6574776f726b2e737667)](https://travis-ci.org/weew/helpers-network)[![Test Coverage](https://camo.githubusercontent.com/5f958dc49bcc84d2a220fa44bea1bddbf48eb609848b35ff8354690faecc3f32/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f776565772f68656c706572732d6e6574776f726b2e737667)](https://coveralls.io/github/weew/helpers-network)[![Version](https://camo.githubusercontent.com/fd6e21344d7bc847fbe2644aab25f97e20bb01d217f86d9c323f8cbc0349dfef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776565772f68656c706572732d6e6574776f726b2e737667)](https://packagist.org/packages/weew/helpers-network)[![Licence](https://camo.githubusercontent.com/4453f83cb73000da489b5b2aa8a2ee53d80966adae8f7a0477b5ef82128f34d1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f776565772f68656c706572732d6e6574776f726b2e737667)](https://packagist.org/packages/weew/helpers-network)

Table of contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Introduction](#introduction)
- [Functions](#functions)
    - [ping](#ping)

Installation
------------

[](#installation)

`composer require weew/helpers-network`

Introduction
------------

[](#introduction)

This tiny library provides various helper functions for network interaction.

Functions
---------

[](#functions)

### ping

[](#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]])`

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity64

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~189 days

Total

2

Last Release

3632d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/10b2b854b5829dd13a15967c000ed2119b5faef67aca24d94c653c8ac550d85e?d=identicon)[weew](/maintainers/weew)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/weew-helpers-network/health.svg)

```
[![Health](https://phpackages.com/badges/weew-helpers-network/health.svg)](https://phpackages.com/packages/weew-helpers-network)
```

###  Alternatives

[imdbphp/imdbphp

Library for retrieving film and tv information from IMDb

26682.1k2](/packages/imdbphp-imdbphp)[rymanalu/factory-generator

Laravel 5 Model Factory Generator.

178.0k](/packages/rymanalu-factory-generator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
