Functions and constants to play with IP addresses and ranges
3.0.1 2021-01-26 23:05 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