wikimedia/ip-utils
Parse, match, and analyze IP addresses and CIDR ranges
6.0.1
796K downloads/mo
#4364 most downloaded on Packagist
wikimedia/mediawiki-libs-IPUtils
What this package is like to depend on
Last release 7 months ago
23 Jan 2026
Release timing varies
gaps range from 2 months to 2.2 years
Nearly every release is documented
notes for 10 of 10 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
10 releases · first in 2019
2 releases in the last 12 months
see the full history below
Release timeline
10 releases · Jun 2019 to Jan 2026Releases
latest 10-
6.0.123 Jan 2026Release notes
Open source →- Optimize
IPSet::addCidrby reducing allocations andord()calls (Ori Livneh) - IPSet: Add some type hints (Sam Reed)
- Optimize
-
6.0.021 Nov 2025Release notes
Open source →- Require PHP 8.1 or later (James D. Forrester)
- Require
ext-jsonin composer.json (Reedy) - Optimize
IPUtils::isInRangesby removing redundant calls for a 3X speed-up (Ori Livneh) - Optimize
IPUtils::isInRangesby removing redundant false check inparseCIDR6(Sam Reed) - Optimize
IPUtils::isInRangesby removing extra case for CIDR /0 inparseCIDR(Umherirrender) - Optimize
IPUtils::isInRangeby removing redundant sanitize call (Ori Livneh) - Use PHP 8 functions str_contains and str_starts_with (Umherirrender)
- Optimize
::getIPsInRangeby using str_split in hexToOctet/hexToQuad (Umherirrender)
-
5.0.028 Sep 2023Release notes
Open source →- Require PHP 7.4 or later (Timo Tijhof)
- The IPSet class is now part of the IPUtils library (Timo Tijhof)
-
4.0.120 Sep 2023 -
4.0.029 Jan 2022 -
3.0.221 Mar 2021Release notes
Open source →- Optimize
IPUtils::canonicalizeby removing redundant strpos/substr call (Reedy) - Allow wikimedia/ip-set ^3.0.0 (Reedy)
- Optimize
-
3.0.126 Jan 2021Release notes
Open source →- Revert "Stop allowing invalid /0 subnet" (Reedy) T267997
- Improve return type for IPUtils::parseCIDR6 (Reedy)
- Add support for spaces around hyphenated IP ranges (Reedy)
-
3.0.009 Nov 2020Release notes
Open source →Major version bump in ip-set due to bumping min
required PHP version to >= 7.2.9.Bug: T271575
Change-Id: I3b731119a4b5865f2c2d3f48ac9c882a554238ffRelease notes
Open source →- Add
IPUtils::getIPsInRangeto retrieve all IPs in a range (Ammar Abdulhamid) - Fix
isValidIPv4andisValidIPv6to cast return value to bool (Reedy)
- Add
-
2.0.009 Mar 2020Release notes
Open source →- Remove PHP 7.0/7.1 and HHVM support (James D. Forrester)
- Add isValidIPv4 and isValidIPv6 (Reedy)
- Add support for explicit ranges in IPUtils::isValidRange() (Reedy)
- Optimize
IPUtils::isValidRangeby checking IPv4 before IPv6 (Reedy) - Fix return values where function doesn't always return
[string, string](Reedy) - Fix getSubnet to not accept invalid IPv4 addresses (Reedy)
- Stop allowing invalid /0 subnet (Reedy)
-
1.0.025 Jun 2019