PHP code example of kqtec / iplocationzh

1. Go to this page and download the library: Download kqtec/iplocationzh 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/ */

    

kqtec / iplocationzh example snippets



use Kqtec\IpLocationZh\Ip;


$add=Ip::get_real_ip()?:'171.12.10.156'
var_dump(Ip::find($add));