PHPackages                             luklewluk/mylittleping - 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. luklewluk/mylittleping

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

luklewluk/mylittleping
======================

Advanced ping library for PHP

1.0.0(9y ago)021MITPHP

Since Oct 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/luklewluk/MyLittlePing)[ Packagist](https://packagist.org/packages/luklewluk/mylittleping)[ Docs](https://github.com/luklewluk/MyLittlePing)[ RSS](/packages/luklewluk-mylittleping/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

MyLittlePing
============

[](#mylittleping)

Object oriented and full configurable implementation of ICMP echo request message.

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

[](#installation)

`composer require luklewluk/mylittleping`

Basic usage
-----------

[](#basic-usage)

Using dependency injection:

```
// Create object instances
$config = new Config();
$connection = new Socket($config);
$ping = new Ping($connection, $config);
// Send request
echo $ping->send('google.com') . PHP_EOL;

```

Using static factory:

```
$ping = Ping::createWithConnection(Socket::class);
echo $ping->send('google.com') . PHP_EOL;

```

Connection implementations
--------------------------

[](#connection-implementations)

### Socket

[](#socket)

The most advanced and customisable connection method.

Requires `root` access.

```
$connection = new Socket($config);

```

### Fsockopen

[](#fsockopen)

It is not recommended way to get exact latency time. Also it can return response time even if server is not responding.

The method does not support custom parameters.

```
$connection = new Fsockopen($config);

```

### Your own implementation

[](#your-own-implementation)

If you need to use your own connection method (i.e. "exec" way) you can easily do it by writing a new class which implements `ConnectionInterface`.

```
$ping = new Ping(new YourClass(), $config);

```

Custom parameters
-----------------

[](#custom-parameters)

List of available parameters to set:

### Port

[](#port)

```
$config->setPort(8080);

```

### Payload

[](#payload)

```
$config->setPayload('abcdefg');

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

3553d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea7887dabd3bf42c4dad8e96036fc464aab0e89b76513f33eca9699ff14704d9?d=identicon)[luklew](/maintainers/luklew)

---

Top Contributors

[![luklewluk](https://avatars.githubusercontent.com/u/6748300?v=4)](https://github.com/luklewluk "luklewluk (6 commits)")

---

Tags

responserequestclientlibraryhostpingdelaylatency

### Embed Badge

![Health badge](/badges/luklewluk-mylittleping/health.svg)

```
[![Health](https://phpackages.com/badges/luklewluk-mylittleping/health.svg)](https://phpackages.com/packages/luklewluk-mylittleping)
```

###  Alternatives

[aplus/http-client

Aplus Framework HTTP Client Library

2171.6M1](/packages/aplus-http-client)[basis-company/nats

nats jetstream client for php

204418.3k33](/packages/basis-company-nats)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40140.4k2](/packages/erlandmuchasaj-laravel-gzip)[pdeans/http

PSR-7 cURL HTTP client with support for PSR-17 HTTP factories.

1466.3k3](/packages/pdeans-http)[chillerlan/php-httpinterface

A PSR-7/17/18 http message/client implementation

1417.8k6](/packages/chillerlan-php-httpinterface)

PHPackages © 2026

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