PHPackages                             silverstripeltd/submuncher - 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. silverstripeltd/submuncher

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

silverstripeltd/submuncher
==========================

Tool for consolidating subnets

1.0(8y ago)03.0k[1 PRs](https://github.com/silverstripeltd/submuncher/pulls)MITPHPPHP &gt;=5.6

Since Apr 22Pushed 1mo ago4 watchersCompare

[ Source](https://github.com/silverstripeltd/submuncher)[ Packagist](https://packagist.org/packages/silverstripeltd/submuncher)[ RSS](/packages/silverstripeltd-submuncher/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (3)Used By (0)

Submuncher
==========

[](#submuncher)

Tool for shortening CIDRs lists.

Inspired by @andrewandante .

Promises
--------

[](#promises)

The tool promises the list will be shortened to desired maximum size. It also promises all input addresses will be included within the output CIDRs.

It does not guarantee output list will not have ("leak") non-input IPs. In other words, it consolidates the list by merging CIDRs and making them bigger.

Algorithm aims to minimise the leak size.

Example
-------

[](#example)

```
$longList = ['1.1.1.0', '1.1.1.1', '1.1.1.2'];
$subMuncher = new SubMuncher();
$shortList = $subMuncher->consolidate($longList, 1);
// $shortList is ['1.1.1.0/30']
echo $subMuncher->getLeakTotal();
// Outputs "1" - 1.1.1.3 was leaked.
```

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance59

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

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

2990d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c908aac2ff1c0c0763a662df79bd03e53edcb12fb3115a7304f7e6892e0751ec?d=identicon)[silverstripe-serviceaccount-ssltd](/maintainers/silverstripe-serviceaccount-ssltd)

---

Top Contributors

[![mateusz](https://avatars.githubusercontent.com/u/118653?v=4)](https://github.com/mateusz "mateusz (3 commits)")[![stojg](https://avatars.githubusercontent.com/u/485130?v=4)](https://github.com/stojg "stojg (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/silverstripeltd-submuncher/health.svg)

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

###  Alternatives

[symfony/polyfill-php56

Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions

1.6k207.1M28](/packages/symfony-polyfill-php56)[dompdf/php-font-lib

A library to read, parse, export and make subsets of different types of font files.

1.8k40.2M11](/packages/dompdf-php-font-lib)[symfony/lock

Creates and manages locks, a mechanism to provide exclusive access to a shared resource

514135.1M626](/packages/symfony-lock)[consolidation/site-alias

Manage alias records for local and remote sites.

6151.0M25](/packages/consolidation-site-alias)[access-manager/access-manager

The Hotspot Management System

605.2k](/packages/access-manager-access-manager)

PHPackages © 2026

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