Functions and constants to play with IP addresses and ranges
3.0.2 2021-03-21 18:39 UTC
A series of utilities for working with IP addresses, both IPv4 and IPv6.
Additional documentation about the library can be found on MediaWiki.org.
use Wikimedia\IPUtils; IPUtils::isIPAddress( '::1' ); IPUtils::isIPv4( '22.214.171.124' );
composer install --prefer-dist composer test