����JFIF��x�x����'
Server IP : 78.140.185.180 / Your IP : 3.141.42.23 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/builderbox/public_html/vendor/torann/geoip/src/Services/ |
Upload File : |
<?php namespace Torann\GeoIP\Services; use GeoIp2\WebService\Client; class MaxMindWebService extends AbstractService { /** * Service client instance. * * @var \GeoIp2\WebService\Client */ protected $client; /** * The "booting" method of the service. * * @return void */ public function boot() { $this->client = new Client( $this->config('user_id'), $this->config('license_key'), $this->config('locales', ['en']) ); } /** * {@inheritdoc} */ public function locate($ip) { $record = $this->client->city($ip); return $this->hydrate([ 'ip' => $ip, 'iso_code' => $record->country->isoCode, 'country' => $record->country->name, 'city' => $record->city->name, 'state' => $record->mostSpecificSubdivision->isoCode, 'state_name' => $record->mostSpecificSubdivision->name, 'postal_code' => $record->postal->code, 'lat' => $record->location->latitude, 'lon' => $record->location->longitude, 'timezone' => $record->location->timeZone, 'continent' => $record->continent->code, ]); } }