yamilovs / sypex-geo
A new generation of Sypex Geo library
Installs: 18 984
Dependents: 2
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 6
Open Issues: 2
Requires
- php: ^7.2
Requires (Dev)
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^8.3
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);