yamilovs / sypex-geo
A new generation of Sypex Geo library
Installs: 19 078
Dependents: 2
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 7
Open Issues: 1
Requires
- php: >=7.2
Requires (Dev)
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^8.3
This package is auto-updated.
Last update: 2025-01-19 03:58:08 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);