PHPackages                             mileschou/ip - 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. mileschou/ip

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

mileschou/ip
============

IP tools in PHP

v0.2.0(4y ago)42.2k1MITPHPPHP ^7.1 | ^8.0

Since Dec 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/MilesChou/ip)[ Packagist](https://packagist.org/packages/mileschou/ip)[ RSS](/packages/mileschou-ip/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (1)

IP tools
========

[](#ip-tools)

IP tools in PHP

[![tests](https://github.com/MilesChou/ip/workflows/tests/badge.svg)](https://github.com/MilesChou/ip/workflows/tests/badge.svg)[![codecov](https://camo.githubusercontent.com/37edf84ae6a3449338a8220bb42494cf42096d1dcaa448d892be1befe64a158e/68747470733a2f2f636f6465636f762e696f2f67682f4d696c657343686f752f69702f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://app.codecov.io/gh/MilesChou/ip)[![Codacy Badge](https://camo.githubusercontent.com/58180494163b853e8eb520afc6eb3016f8e93c8b2b329dac79225b1df487fbcc/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6634383736386639366631363438616461626562653065393232373137306534)](https://www.codacy.com/gh/MilesChou/ip/dashboard)[![Latest Stable Version](https://camo.githubusercontent.com/676299f1f0d468a004e92f88ac9dd107273fcfce85765a1bdd2c57428b22a71a/68747470733a2f2f706f7365722e707567782e6f72672f4d696c657343686f752f69702f762f737461626c65)](https://packagist.org/packages/MilesChou/ip)[![Total Downloads](https://camo.githubusercontent.com/68347b161ebef50caf0f2c5f76d0e2b2a097636ab500e9c7873c7879c05e1aec/68747470733a2f2f706f7365722e707567782e6f72672f4d696c657343686f752f69702f642f746f74616c2e737667)](https://packagist.org/packages/MilesChou/ip)[![License](https://camo.githubusercontent.com/7705b464a65beab3e5ee2209ca60a72436c9b9c7b5a6e873863b7c970bf7346b/68747470733a2f2f706f7365722e707567782e6f72672f4d696c657343686f752f69702f6c6963656e7365)](https://packagist.org/packages/MilesChou/ip)

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

[](#installation)

Install package by Composer:

```
composer require mileschou/ip
```

Usage
-----

[](#usage)

This a simple collection to store IP list and can find IP in list.

```
$collection = new V4();
$collection->addCidr('127.0.0.0/8');

$collection->has('127.0.0.1');      // true
$collection->has('192.168.0.1');    // false
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 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

Every ~1 days

Total

2

Last Release

1665d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/20872dcc4b888075f03819d5470db8198ffcc5f9edb791aba5f007e34355a6c9?d=identicon)[MilesChou](/maintainers/MilesChou)

---

Top Contributors

[![MilesChou](https://avatars.githubusercontent.com/u/1258752?v=4)](https://github.com/MilesChou "MilesChou (17 commits)")

---

Tags

php

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/mileschou-ip/health.svg)

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

PHPackages © 2026

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