sinator/sypex-geo

A new generation of Sypex Geo library (with php 8), fork from: yamilovs/sypex-geo

Maintainers

Details

github.com/Sinator/SypexGeo

Source

Installs: 2 659

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 7

pkg:composer/sinator/sypex-geo

1.0.2 2022-06-14 17:19 UTC

This package is not auto-updated.

Last update: 2025-10-16 07:51:25 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);