2017 © Pedro Peláez
 

library php-cidr-match

CIDRmatch is a library to match an IP to an IP range in CIDR notation (IPv4 and IPv6).

image

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

The README.md

Build Status, (*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

The Versions

07/07 2015

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

  • php >=5.3

 

The Development Requires

php ipv6 ipv4 cidr

07/07 2015

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

  • php >=5.3

 

The Development Requires

php ipv6 ipv4 cidr