Skip to content

Small lib to check if a IP is in multiple range or not

Notifications You must be signed in to change notification settings

icovn/php-ip-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-ip-filter

Small lib to check if a IP is in multiple range or not

Example:
$filter = new IpFilter(array('10.22.0.0 255.255.0.0','10.24.0.0 255.255.0.0','10.26.0.0 255.255.0.0','10.28.0.0 255.255.0.0'));
$result = $filter -> check('10.28.255.1');

About

Small lib to check if a IP is in multiple range or not

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages