HighSpeaker/.history/test_20221223131021.php

11 lines
227 B
PHP
Raw Permalink Normal View History

2022-12-24 22:10:40 +08:00
<?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('128.101.101.101');
var_dump($record);
?>