PackageTrack
Sign in Get early access

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 2026
2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 10
  1. 6.0.1 23 Jan 2026
    Release notes
    • Optimize IPSet::addCidr by reducing allocations and ord() calls (Ori Livneh)
    • IPSet: Add some type hints (Sam Reed)
    Open source →
  2. 6.0.0 21 Nov 2025
    Release notes
    • Require PHP 8.1 or later (James D. Forrester)
    • Require ext-json in composer.json (Reedy)
    • Optimize IPUtils::isInRanges by removing redundant calls for a 3X speed-up (Ori Livneh)
    • Optimize IPUtils::isInRanges by removing redundant false check in parseCIDR6 (Sam Reed)
    • Optimize IPUtils::isInRanges by removing extra case for CIDR /0 in parseCIDR (Umherirrender)
    • Optimize IPUtils::isInRange by removing redundant sanitize call (Ori Livneh)
    • Use PHP 8 functions str_contains and str_starts_with (Umherirrender)
    • Optimize ::getIPsInRange by using str_split in hexToOctet/hexToQuad (Umherirrender)
    Open source →
  3. 5.0.0 28 Sep 2023
    Release notes
    • Require PHP 7.4 or later (Timo Tijhof)
    • The IPSet class is now part of the IPUtils library (Timo Tijhof)
    Open source →
  4. 4.0.1 20 Sep 2023
    Release notes
    • Allow wikimedia/ip-set ^4.0.0 (Timo Tijhof)
    Open source →
  5. 4.0.0 29 Jan 2022
    Release notes

    Change-Id: Id790371e4c24930065ba33f6e5a68ed270226a6c

    Open source →
    Release notes
    • Several IPUtils constants are now explicitly private (Zabe)
    Open source →
  6. 3.0.2 21 Mar 2021
    Release notes
    • Optimize IPUtils::canonicalize by removing redundant strpos/substr call (Reedy)
    • Allow wikimedia/ip-set ^3.0.0 (Reedy)
    Open source →
  7. 3.0.1 26 Jan 2021
    Release notes
    • Revert "Stop allowing invalid /0 subnet" (Reedy) T267997
    • Improve return type for IPUtils::parseCIDR6 (Reedy)
    • Add support for spaces around hyphenated IP ranges (Reedy)
    Open source →
  8. 3.0.0 09 Nov 2020
    Release notes

    Major version bump in ip-set due to bumping min
    required PHP version to >= 7.2.9.

    Bug: T271575
    Change-Id: I3b731119a4b5865f2c2d3f48ac9c882a554238ff

    Open source →
    Release notes
    • Add IPUtils::getIPsInRange to retrieve all IPs in a range (Ammar Abdulhamid)
    • Fix isValidIPv4 and isValidIPv6 to cast return value to bool (Reedy)
    Open source →
  9. 2.0.0 09 Mar 2020
    Release notes
    • 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::isValidRange by 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)
    Open source →
  10. 1.0.0 25 Jun 2019
    Release notes
    • Initial import from MediaWiki core (Kunal Mehta)
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive