定制 tholu/php-cidr-match 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Build Status

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

GitHub 信息

  • Stars: 35
  • Watchers: 3
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-25