yamilovs / sypex-geo
A new generation of Sypex Geo library
1.0.2
2025-01-19 02:50 UTC
Requires
- php: >=7.2
Requires (Dev)
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^8.3
This package is auto-updated.
Last update: 2026-02-19 06:31:31 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);