There is no license information available for the latest version (1.1.0) of this package.

Geo daemon on ReactPHP that resolves GEO information on given IP using SypexGeo database

1.1.0 2016-12-06 07:10 UTC

This package is auto-updated.

Last update: 2024-04-11 13:00:59 UTC


ReactPHP HTTP daemon that resolves GEO information on given IP


Tip: This daemon works extremely fast with PHP7!

Get the database file from official SypexGEO site. You need 'Sypex Geo City' database in UTF-8 encoding.

Install composer and run composer install or (php composer.phar install).

Start the daemon:

php server.php --host= --port=16001

Make your simple requests. For example this requests gives the following output(prettified for better look):

    "city": {
        "id": 524901,
        "lat": 55.75222,
        "lon": 37.61556,
        "name_ru": "\u041c\u043e\u0441\u043a\u0432\u0430",
        "name_en": "Moscow"
    "region": {
        "id": 524894,
        "name_ru": "\u041c\u043e\u0441\u043a\u0432\u0430",
        "name_en": "Moskva",
        "iso": "RU-MOW"
    "country": {
        "id": 185,
        "iso": "RU",
        "lat": 60,
        "lon": 100,
        "name_ru": "\u0420\u043e\u0441\u0441\u0438\u044f",
        "name_en": "Russia"
    "time": "0.000406980515",
    "error": false

Ping / Status monitoring

You can ping the daemon for html response and for json response.