yamilovs/sypex-geo

A new generation of Sypex Geo library

1.0.1 2020-09-22 11:32 UTC

This package is auto-updated.

Last update: 2024-10-22 20:42:56 UTC


README

A new generation of Sypex Geo library

Installation

You can install it through Composer:

$ composer require yamilovs/sypex-geo

Basic Usage

<?php

use Yamilovs\SypexGeo\Database\Mode;
use Yamilovs\SypexGeo\SypexGeo;

include('./vendor/autoload.php');

$sypexGeo = new SypexGeo(__DIR__.'/SxGeoCity.dat', Mode::FILE);

$city = $sypexGeo->getCity('5.189.19.230');

var_dump($city);