PHP code example of rhilip / ipv6wry

1. Go to this page and download the library: Download rhilip/ipv6wry library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rhilip / ipv6wry example snippets




use Rhilip\Ipv6Wry\IpLocation;

// Use Custom IP Database instead of Built-in
IpLocation::setDbPath($db_path);

// Search IPv6 Address and get Location information
IpLocation::searchIp($ipv6_address);