farit-slv/sypex-geo

A new generation of Sypex Geo library (with php 8), fork from: yamilovs/sypex-geo

1.1 2023-01-10 14:07 UTC

This package is not auto-updated.

Last update: 2024-11-13 22:43:38 UTC


README

A new generation of Sypex Geo library

Installation

You can install it through Composer:

$ composer require farit-slv/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);