Content-Length: 12523 | pFad | https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/libs/IPUtils

mediawiki/libs/IPUtils - Gitiles
Clone this repo:
  1. 83a555b build: Updating mediawiki/mediawiki-phan-config to 0.15.0 by libraryupgrader · 4 weeks ago master
  2. 46161d5 build: Updating phpunit/phpunit to 9.6.21 by libraryupgrader · 6 weeks ago
  3. bbf836e build: Updating mediawiki/mediawiki-codesniffer to 45.0.0 by libraryupgrader · 2 months ago
  4. 5cac3f0 build: Updating mediawiki/mediawiki-codesniffer to 44.0.0 by libraryupgrader · 5 months ago
  5. 0ff5546 build: Updating composer dependencies by libraryupgrader · 8 months ago

Packagist

IPUtils

Parse, match, and analyze IP addresses and CIDR ranges. This library supports both IPv4 and IPv6.

Additional documentation about the library can be found on mediawiki.org.

Usage

IPSet can be up to 100x faster than calling IPUtils::isInRange() over multiple CIDR specs.

Running tests

composer install --prefer-dist
composer test

History

The IPUtils class started life in 2006 as part of MediaWiki 1.7 (r15572). It was split out of the MediaWiki codebase and published as an independent library during the MediaWiki 1.34 development cycle.

The IPSet class was created by Brandon Black in 2014 as faster alternative to IPUtils::isInRange() (MediaWiki 1.24, change 131758). It was moved to a library during the MediaWiki 1.26 development cycle (change 221179, change 218384).









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/libs/IPUtils

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy