PHP code example of ank / iplookup
1. Go to this page and download the library: Download ank/iplookup 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/ */
ank / iplookup example snippets
//默认
$ip = new \ank\IpLookup();
$info = $ip->getInfo('47.56.171.51', 0);
var_dump($info);