2017 © Pedro Peláez
 

library v6tools

IPv6 tools for PHP

image

dsp/v6tools

IPv6 tools for PHP

  • Friday, April 6, 2018
  • by dsp
  • Repository
  • 0 Watchers
  • 29 Stars
  • 2,643 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 1 Versions
  • 2 % Grown

The README.md

PHP IPv6 Tools

Build Status, (*1)

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

<?php
require('v6tools/autoload.php');

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

$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');
$ip->isInSubnet('2001::1');
// returns true
$ip->isInSubnet('2000::1');
// return false

License

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

The Versions

06/04 2018

dev-master

9999999-dev http://github.com/dsp/v6tools

IPv6 tools for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by David Soria Parra

ipv6 network