rlanvin / php-ip
IPv4/IPv6 manipulation library for PHP
Installs: 498 187
Dependents: 10
Suggesters: 0
Security: 0
Stars: 177
Watchers: 16
Forks: 26
Open Issues: 12
Requires
- php: >=7.1
- ext-gmp: *
Requires (Dev)
- phpunit/phpunit: ^6.5|^8.0
This package is auto-updated.
Last update: 2024-10-29 04:10:21 UTC
README
IPv4/IPv6 manipulation library for PHP inspired by Python ipaddress.
Requirements
- PHP >= 7.1
- IPv6 support enabled
- GMP extension (www.php.net/manual/en/book.gmp.php)
Installation
The recommended way is to install the lib through Composer.
Simply run composer require rlanvin/php-ip
for it to be automatically installed and included in your composer.json
.
Now you can use the autoloader, and you will have access to the library:
require 'vendor/autoload.php';
Documentation
Complete doc is available in the wiki.
Contribution
Feel free to contribute! Just create a new issue or a new pull request.
License
This library is released under the MIT License.