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

Hi, @rlanvin! Thanks for a great library, it's well designed and nice to work with. I've inited a new library as a toolkit on top of yours for free IP...

Add Classes which are working as Collections at least for IPBlock. These collection could contain one or many IPBlock Objects and could implement same methods like contain(), isIn(), and so...

For me it's unsure if this is a wanted behaviour but, if i try to create an IPBlock from a non human readable ip prefix it will fail. ### Code...

Add new method IPv4::isNetmask(). This provides functionality to test if an IPv4 address is a valid netmask.

This PR adds PHP-CS-Fixer as a dev dependency.

Thanks for the nice library. Im missing a feature to get the mask() in cidr. Example: $block = new IPv4Block('128.0.0.0/16'); $block->getMask() = 255.255.0.0 Wish: $block->getMaskCIDR() = 16

Unexpected behaviour while using IPBlock with prefixes larger than 23 ```php $block = IPBlock::create('35.35.32.0/22'); foreach ($block as $ip) { echo $ip,"\n"; } ``` ``` 35.35.32.0 35.35.32.1 35.35.32.2 ... 35.35.35.230 35.35.35.231...

Hello, i have a list of IP's i want to pull out only the unique IP's (blocks) from the list. For example, 192.168.0.0/32 is in 192.168.0.0/24 so it should just...

Hello i want to calculate and echo all the ips according to IP & netmask for example 127.0.0.1 netmask 255.255.255.192 i want to do for loop on all the block....

Hi, today I installed the `rlanvin/php-ip` package via composer. Alongside that I also added the 'ext-gmp' to my composer.json: ``` "require": { "php": "^8.1", "ext-gmp": "*", "guzzlehttp/guzzle": "^7.2", "laravel/framework": "^9.18",...