PHP code example of smartjson / ips-location-zh

1. Go to this page and download the library: Download smartjson/ips-location-zh 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/ */

    

smartjson / ips-location-zh example snippets

markdown
rtJson\IpLocationZh\Ip;


var_dump(Ip::find('ip address'));`
markdown
array:4 [
   0 => "中国"
   1 => "上海"
   2 => "上海"
 ]