Functions and constants to play with IP addresses and ranges
2.0.0 2020-03-09 01:16 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( '184.108.40.206' );
composer install --prefer-dist composer test