kylerosspretorius/ipchecker-lib

用于过滤IP范围的包

1.0 2018-02-14 14:50 UTC

This package is not auto-updated.

Last update: 2024-09-29 04:49:39 UTC


README

提供一个简单的API来检查给定的IP地址是否在指定的范围内。

安装

kylepretorius/ipchecker-lib添加到你的composer.json文件中的依赖项

$ composer require kylepretorius/ipchecker-lib

基本用法

$result = new IPChecker(['192.168.1.0/16', '192.168.10.89/32'])->detect(192.168.1.1);