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

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

atk14/ip-matcher
================

Small class for checking ip addresses

v1.0(9y ago)09.0k↑43.3%2MITPHPPHP &gt;=5.0.0

Since Oct 7Pushed 6y ago2 watchersCompare

[ Source](https://github.com/atk14/IpMatcher)[ Packagist](https://packagist.org/packages/atk14/ip-matcher)[ Docs](https://github.com/atk14/IpMatcher)[ RSS](/packages/atk14-ip-matcher/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (2)

IpMatcher
=========

[](#ipmatcher)

Small class for comparing IP addresses. One address can be compared with a single IP address or array of IPs or subnets. Works with both IPv4 and IPv6 formats.

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

[](#basic-usage)

Compare two IPs

```
IP::Match("127.0.0.1", "127.0.0.1");
```

Check an IP belongs to a 127.0.0.1-127.0.0.255 subnet

```
IP::Match("127.0.0.1", "127.0.0.1/24");
```

Check an IP matches at least one of addresses/subnets specified in an array

```
IP::Match("127.0.0.1", array("127.0.0.2", "127.0.0.1/24"));
```

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

[](#installation)

Just use the Composer:

```
$ cd path/to/your/atk14/project/
$ composer require atk14/ip-matcher

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.7% 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

3510d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/63850884295d8ba2feeca5607fb01db937060f526ed7e71fcbd184fd00ce2799?d=identicon)[michal.vojan](/maintainers/michal.vojan)

---

Top Contributors

[![mysutka](https://avatars.githubusercontent.com/u/974669?v=4)](https://github.com/mysutka "mysutka (8 commits)")[![yarri](https://avatars.githubusercontent.com/u/974278?v=4)](https://github.com/yarri "yarri (3 commits)")

---

Tags

checkcompareIPsubnetmask

### Embed Badge

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

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

###  Alternatives

[longman/ip-tools

PHP IP Tools for manipulation with IPv4 and IPv6

147245.6k6](/packages/longman-ip-tools)[s1lentium/iptools

PHP Library for manipulating network addresses (IPv4 and IPv6)

2446.2M24](/packages/s1lentium-iptools)[markrogoyski/ipv4-subnet-calculator

Network calculator for subnet mask and other classless (CIDR) network information.

177813.7k6](/packages/markrogoyski-ipv4-subnet-calculator)[jaaulde/php-ipv4

PHP classes for working with IPV4 addresses and networks.

1034.6k](/packages/jaaulde-php-ipv4)

PHPackages © 2026

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