2017 © Pedro Peláez
 

library sixtofour

Library for conversion of IPv4 addresses to 6to4-encapsulated IPv6.

image

wrossmann/sixtofour

Library for conversion of IPv4 addresses to 6to4-encapsulated IPv6.

  • Friday, May 20, 2016
  • by wrossmann
  • Repository
  • 1 Watchers
  • 0 Stars
  • 458 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 12 % Grown

The README.md

SixToFour

Library for conversion of IPv4 addresses to 6to4-encapsulated IPv6., (*1)

Example Usage

<?php 
require('vendor/autoload.php');
use \wrossmann\sixtofour\SixToFour;

$v4 = '222.173.190.239';
$v6 = SixToFour::convFourToSix($v4);
$bin = SixToFour::str2bin($v4);
var_dump(
    bin2hex($bin),
    SixToFour::bin2str($bin),
    SixToFour::bin2str($bin, true),
    SixToFour::convSixToFour($v6)
);

Output:, (*2)

string(32) "200200de00ad00be00ef000000000000"
string(15) "222.173.190.239"
string(18) "2002:de:ad:be:ef::"
string(15) "222.173.190.239"

The Versions

20/05 2016

dev-master

9999999-dev

Library for conversion of IPv4 addresses to 6to4-encapsulated IPv6.

  Sources   Download

by Wade Rossmann

20/05 2016

1.0.0

1.0.0.0

Library for conversion of IPv4 addresses to 6to4-encapsulated IPv6.

  Sources   Download

by Wade Rossmann