kylepretorius/ipchecker-lib

Package to filter through IP Range

1.0 2018-02-14 14:50 UTC

This package is not auto-updated.

Last update: 2024-05-12 02:51:27 UTC


README

Provides a simple API to check if a given IP address is within the specified range.

Installation

Add kylepretorius/ipchecker-lib as a requirement to your composer.json:

$ composer require kylepretorius/ipchecker-lib

Basic Usage

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