sinator / sypex-geo
A new generation of Sypex Geo library (with php 8), fork from: yamilovs/sypex-geo
1.0.2
2022-06-14 17:19 UTC
Requires
- php: >=7.2
Requires (Dev)
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^8.3
This package is not auto-updated.
Last update: 2024-05-16 01:04:46 UTC
README
A new generation of Sypex Geo library with php 8.
Forked from yamilovs/SypexGeo
Installation
You can install it through Composer:
$ composer require sinator/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);