mileschou / ip
IP tools in PHP
Installs: 1 391
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.1 | ^8.0
Requires (Dev)
- phpbench/phpbench: ^0.16 | ^1.1
- phpunit/phpunit: ^7.5 | ^8.5 | ^9.3
- squizlabs/php_codesniffer: ^3.6
This package is auto-updated.
Last update: 2024-10-29 06:46:53 UTC
README
IP tools in PHP
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.