atk14/ip-matcher 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

atk14/ip-matcher

Composer 安装命令:

composer require atk14/ip-matcher

包简介

Small class for checking ip addresses

README 文档

README

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.

Basic usage

Compare two IPs

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

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

IP::Match("127.0.0.1", array("127.0.0.2", "127.0.0.1/24"));

Installation

Just use the Composer:

$ cd path/to/your/atk14/project/
$ composer require atk14/ip-matcher

统计信息

  • 总下载量: 10.18k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-11-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固