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

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

moddix/ip-matcher
=================

Checks that IP address contains in present list of subnets

1.0.0(7mo ago)042MITPHPPHP &gt;=7.4

Since Sep 25Pushed 7mo agoCompare

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

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

Простой класс для поиска IP адреса в большом списке IP адресов и подсетей.

Несколько вариантов использования:

1. В файл `ips.json` добавить список IP адресов и/или подсетей.

```
[
  "69.38.0.0\/16",
  "38.0.0.0\/8",
  "74.6.0.0\/16",
  "67.195.0.0\/16",
  "93.172.94.227",
  "212.100.250.218",
  "71.165.223.134",
  "70.91.180.25",
  "65.93.62.242",
  "74.193.246.129"
]
```

После чего нужно подготовить данные, пример в `prepare_data.php`.
Будет создан файл `data.json` в котором будут храниться отсортированные значения, а также будут удалены дубли и произведено объедение если какая-то из подсетей "захватывает" одиночные IP адреса.

В файле `search.php` пример поиска IP адреса.

---

2. Через настройки плагина в админке WordPress.
    Наполняем списком адресов, нажимаем "Сохранить изменения" и JSON будет сохранён в опции `ip_matcher_json`. В любом месте получить JSON можно так:

```
$json = get_option('ip_matcher_json', '');
```

И далее используем класс `IPMatcher` для поиска IP адреса.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance62

Regular maintenance activity

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

231d ago

### Community

Maintainers

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

---

Top Contributors

[![Moddix-Deeplay](https://avatars.githubusercontent.com/u/138650566?v=4)](https://github.com/Moddix-Deeplay "Moddix-Deeplay (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[fisharebest/webtrees

webtrees online genealogy

73710.5k13](/packages/fisharebest-webtrees)[paragi/php-websocket-client

Websocket client

14322.8k](/packages/paragi-php-websocket-client)[chippyash/monad

Functional programming Monad support

2828.1k8](/packages/chippyash-monad)[customgento/module-remove-product-comparison-m2

Remove Product Comparison for Magento 2 removes the product comparison feature completely from Magento.

1028.6k](/packages/customgento-module-remove-product-comparison-m2)

PHPackages © 2026

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