MilesChou / ip

IP tools in PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IP tools

IP tools in PHP

tests codecov Codacy Badge Latest Stable Version Total Downloads License

Installation

Install package by Composer:

composer require mileschou/ip

Usage

This a simple collection to store IP list and can find IP in list.

$collection = new V4();
$collection->addCidr('127.0.0.0/8');

$collection->has('127.0.0.1');      // true
$collection->has('192.168.0.1');    // false

License

The MIT License (MIT). Please see License File for more information.

About

IP tools in PHP

License:MIT License


Languages

Language:PHP 97.0%Language:Makefile 3.0%