tholu/php-cidr-match
最新稳定版本:0.5
Composer 安装命令:
composer require tholu/php-cidr-match
包简介
CIDRmatch is a library to match an IP to an IP range in CIDR notation (IPv4 and IPv6).
README 文档
README
CIDR match
CIDRmatch is a library to match an IP to an IP range in CIDR notation (IPv4 and IPv6).
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.
Usage
$cidrMatch = new CIDRmatch();
$cidrMatch->match($ip, $cidr);
Tests
./vendor/bin/phpunit tests/CIDRmatchTest
统计信息
- 总下载量: 197.02k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 37
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-25