darsyn / ip

Immutable value object for IPv4 and IPv6 addresses, including helper methods and Doctrine support.
http://darsyn.github.io/ip/
MIT License
249 stars 21 forks source link

Add New Type Methods #80

Closed zanbaldwin closed 2 years ago

zanbaldwin commented 2 years ago
$ip = Multi::factory('127.0.0.1');

// Both IPv4 and IPv6
$ip->isBenchmarking();
$ip->isDocumentation();
$ip->isPublic();

// IPv4 Specific
$ip->isBroadcast();
$ip->isFutureReserved();

// IPv6 Specific
$ip->isUniqueLocal();
$ip->isUnicast();
$ip->isUnicastGlobal();

Wait for the #78 and #79 to be merged before continuing.