Functions and constants to play with IP addresses and ranges
4.0.0 2022-01-29 17:36 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( '18.104.22.168' );
composer install --prefer-dist composer test