Download the PHP package athlon1600/php-cidr-range-optimizer without Composer
On this page you can find all versions of the php package athlon1600/php-cidr-range-optimizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download athlon1600/php-cidr-range-optimizer
More information about athlon1600/php-cidr-range-optimizer
Files in athlon1600/php-cidr-range-optimizer
Download athlon1600/php-cidr-range-optimizer
More information about athlon1600/php-cidr-range-optimizer
Files in athlon1600/php-cidr-range-optimizer
Vendor athlon1600
Package php-cidr-range-optimizer
Short Description Given a list of IP ranges, merge them into the smallest possible list of CIDRs.
License MIT
Package php-cidr-range-optimizer
Short Description Given a list of IP ranges, merge them into the smallest possible list of CIDRs.
License MIT
Please rate this library. Is it a good library?
Informations about the package php-cidr-range-optimizer
Optimize CIDR Ranges
Given a list of IP address ranges, minify that list to the smallest possible size by performing the following optimizations:
- removing invalid IP addresses/ranges from the list
- removing duplicates
- removing IP ranges already covered by larger ranges in the list
- merging adjacent IP ranges into larger, contiguous blocks
:star: Demo
An online tool that uses a near exact version of this library:
Installation
Usage
Build your list of IP ranges into CIDRList
object, then use RangeOptimizer
class to optimize it. Example:
Output:
All versions of php-cidr-range-optimizer with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4.0
The package athlon1600/php-cidr-range-optimizer contains the following files
Loading the files please wait ....