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

ActiveLibrary

rimelek/ip-util
===============

Handle IP addresses and ranges

v1.0.0(3y ago)41.2kMITPHPPHP &gt;=5.6

Since May 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/rimelek/iputil)[ Packagist](https://packagist.org/packages/rimelek/ip-util)[ RSS](/packages/rimelek-ip-util/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (6)Used By (0)

Introduction
============

[](#introduction)

Full documentation
------------------

[](#full-documentation)

The goal of the library
-----------------------

[](#the-goal-of-the-library)

Sometimes you need to work with IP addresses. For example, you want to restrict access to a website, but the restriction depends on a list of IP addresses from a database or other sources. Imagine you are a developer in an institution that has a large network with many subnets or individual PCs. You want to make sure the service is available only for coworkers in the subnets of the institution even if the server is accessible publicly. So anyone can manage the addresses in the database and set a minimum and maximum IP addresses of one or many IP ranges, and you can provide an api to get CIDR notations or find overlapping IP ranges and fix them.

This is the goal of the library. To make it simple and give you a tool to work with IPv4 and IPv6 addresses.

Requirements
------------

[](#requirements)

- PHP 5.6
- Composer

License
-------

[](#license)

MIT

DEMO
----

[](#demo)

If you want to see some live examples what the library can do for you, check the following page on IT sziget:

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Every ~1066 days

Total

3

Last Release

1148d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f56406d664409994614829395e195538afebee4f5d35abc02769a099f187ba4?d=identicon)[rimelek](/maintainers/rimelek)

---

Top Contributors

[![rimelek](https://avatars.githubusercontent.com/u/8455727?v=4)](https://github.com/rimelek "rimelek (86 commits)")

---

Tags

ip-addressipv4ipv6php

### Embed Badge

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

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

PHPackages © 2026

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