Skip to content
PHP IPv6 Tools
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src/v6tools logic error corrected
.gitignore * Use PHPAB to generate autoloader.
.travis.yml Add support for travis-ci
LICENSE Add additional beerware clause
composer.json Fix composer autoloading
phpunit.xml.dist * Use PHPAB to generate autoloader.

PHP IPv6 Tools

Build Status "Flattr This"

PHP IPv6 Tools (v6tools) is a small library that provides validation of IPv6 addresses, subnets and EUI64.


if (!v6tools\Runtime::isIPv6Supported()) {
    fprintf(STDERR, "No ipv6 support");

$ip = new v6tools\EUI64('2a01:198:603:0:224:d6ff:fe18:618c');
echo $ip->getMacAddress();
// echos 00:24:d6:18:61:8c

$ip = new v6tools\Subnet('2001::/16');
// returns true
// return false


Licensed under the terms of the MIT License with additional Beerware clause. If you like v6tools feel free to buy me beer.

Something went wrong with that request. Please try again.