library php-cidr-match
CIDRmatch is a library to match an IP to an IP range in CIDR notation (IPv4 and IPv6).
tholu/php-cidr-match
CIDRmatch is a library to match an IP to an IP range in CIDR notation (IPv4 and IPv6).
- Tuesday, July 7, 2015
- by tholu
- Repository
- 2 Watchers
- 9 Stars
- 27,936 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 2 Forks
- 2 Open issues
- 2 Versions
- 10 % Grown
, (*1)
CIDR match
CIDRmatch is a library to match an IP to an IP range in CIDR notation (IPv4 and IPv6)., (*2)
NOTE: Symfony2 already does everything this library here does with its IpUtils module.
Unfortunately I discovered this only after I finished working on this library., (*3)
Usage
$cidrMatch = new CIDRmatch();
$cidrMatch->match($ip, $cidr);
Tests
./vendor/bin/phpunit tests/CIDRmatchTest
dev-master
9999999-dev
CIDRmatch is a library to match an IP to an IP range in CIDR notation (IPv4 and IPv6).
Sources
Download
MIT
The Requires
The Development Requires
php
ipv6
ipv4
cidr
0.1
0.1.0.0
CIDRmatch is a library to match an IP to an IP range in CIDR notation (IPv4 and IPv6).
Sources
Download
MIT
The Requires
The Development Requires
php
ipv6
ipv4
cidr