Functions and constants to play with IP addresses and ranges
3.0.0 2020-11-09 21:59 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