icovn/php-ip-filter

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

dev-master 2016-01-17 16:15 UTC

This package is not auto-updated.

Last update: 2024-06-12 16:45:58 UTC


README

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');