Save
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
use GeoIp2\Database\Reader;
|
||||
$reader = new Reader(base_path().'/geoip/GeoLite2-City/GeoLite2-City.mmdb');
|
||||
|
||||
$record = $reader->city('38.240.134.22');
|
||||
|
||||
print_r($record);
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user