PHP code example of uuidcoders / ip-location-zh-backups
1. Go to this page and download the library: Download uuidcoders/ip-location-zh-backups 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/ */
uuidcoders / ip-location-zh-backups example snippets
use Zhuzhichao\IpLocationZh\Ip;
var_dump(Ip::find('171.12.10.156'));
// Laravel 5.5 不需要添加
'aliases' => [
'Ip' => 'Zhuzhichao\IpLocationZh\Ip',
],