Skip to content

Sinator/SypexGeo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SypexGeo

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);

Packages

No packages published

Languages

  • PHP 100.0%