dev-master
9999999-dev https://github.com/atk14/IpMatcherSmall class for checking ip addresses
MIT
The Requires
- php >=5.0.0
by Michal Vojan
ip check mask compare subnet
Small class for checking ip addresses
Small class for comparing IP addresses. One address can be compared with a single IP address or array of IPs or subnets. Works with both IPv4 and IPv6 formats., (*1)
Compare two IPs, (*2)
IP::Match("127.0.0.1", "127.0.0.1");
Check an IP belongs to a 127.0.0.1-127.0.0.255 subnet, (*3)
IP::Match("127.0.0.1", "127.0.0.1/24");
Check an IP matches at least one of addresses/subnets specified in an array, (*4)
IP::Match("127.0.0.1", array("127.0.0.2", "127.0.0.1/24"));
Just use the Composer:, (*5)
$ cd path/to/your/atk14/project/ $ composer require atk14/ip-matcher
Small class for checking ip addresses
MIT
ip check mask compare subnet