php-ip icon indicating copy to clipboard operation
php-ip copied to clipboard

IPv4/IPv6 manipulation library for PHP

Results 12 php-ip issues
Sort by recently updated
recently updated
newest added

Examples: ``` > (string)\PhpIP\IPBlock::create(\PhpIP\IPv6::createFromString('ffff::ffff'), 32)::class = "PhpIP\IPv4Block" > (string)\PhpIP\IPBlock::create(\PhpIP\IPv6::createFromString('ffff::ffff'), 32)->getLastIp() = "::ffff" ``` Expected: ``` > (string)\PhpIP\IPBlock::create(\PhpIP\IPv6::createFromString('ffff::ffff'), 32)::class = "PhpIP\IPv6Block" > (string)\PhpIP\IPBlock::create(\PhpIP\IPv6::createFromString('ffff::ffff'), 32)->getLastIp() = "ffff:0:ffff:ffff:ffff:ffff:ffff:ffff" ```

``` > (string)\PhpIP\IPBlock::create('asdf/32') = "97.115.100.102/32" ``` While asdf is a valid binary representation of some IP, it's not valid when it's a part of a subnet notation and should not...