ipv4-subnet-calculator-php
ipv4-subnet-calculator-php copied to clipboard
Network calculator for subnet mask and other classless (CIDR) network information.
Ipv6
it would be good if the whole thing would also work with ipv6.
min-host for /31 and /32 was wrong. max-host for /31 and /32 was wrong. added private function "addIps". Attention, min-host and max-host only fixed in decimal-version.
Added static method for instance in the case of IP address with subnet mask. $sub = IPv4\SubnetCalculator::factory('192.168.112.203/23');
Also would be nice to have: - check if IP is in this subnet - reverse lookup: get subnet by IP range (given: 50.0.0.0 — 50.255.255.255, get: 50.50.50.50/8)
Hi, Would it be possible to add to the code an n- subnet value. For example the bc, hostmin, hostmax, etc of the 3th subnet for 123.78.88.90/12 ? Maybe feeding...