PHPackages                             kipkaev55/sxgeo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kipkaev55/sxgeo

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kipkaev55/sxgeo
===============

Library for Sypex Geo2

1.1.3(6y ago)212.5k↓33.3%51MITPHPPHP &gt;=5.4.0

Since Apr 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/kipkaev55/sxgeo)[ Packagist](https://packagist.org/packages/kipkaev55/sxgeo)[ RSS](/packages/kipkaev55-sxgeo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (8)Used By (1)

SypexGeo Reader
===============

[](#sypexgeo-reader)

Description
-----------

[](#description)

This package provides information about the user's GEO, works with free [Sypex Geo2](https://sypexgeo.net/).

Install via Composer
--------------------

[](#install-via-composer)

We recommend installing this package with [Composer](http://getcomposer.org/).

### Download Composer

[](#download-composer)

To download Composer, run in the root directory of your project:

```
curl -sS https://getcomposer.org/installer | php
```

You should now have the file `composer.phar` in your project directory.

### Install Dependencies

[](#install-dependencies)

Run in your project root:

```
php composer.phar require kipkaev55/sxgeo:1.0.1

```

You should now have the files `composer.json` and `composer.lock` as well as the directory `vendor` in your project directory. If you use a version control system, `composer.json` should be added to it.

Update database on "composer install" command
---------------------------------------------

[](#update-database-on-composer-install-command)

---

Put "post-install-cmd" event to composer.json

```
"scripts": {
    "post-install-cmd": [
        "SypexGeo\\Composer::installDatabases"
    ],
    "post-update-cmd": [
        "SypexGeo\\Composer::installDatabases"
    ]
}
```

Put "extra" settings to composer.json

```
"extra": {
    "sypexgeo_remote": "https://sypexgeo.net/files/SxGeoCity_utf8.zip",
    "sypexgeo_local": "vendor/kipkaev55/sxgeo/SxGeoCity.dat"
}
```

### Require Autoloader

[](#require-autoloader)

After installing the dependencies, you need to require the Composer autoloader from your code:

```
require 'vendor/autoload.php';
```

Usage
-----

[](#usage)

Straightforward:

```
require_once __DIR__ . '/vendor/autoload.php'; // Autoload files using Composer autoload

use SypexGeo\Reader;

$reader = new Reader('SxGeoCity.dat', 'ru');
var_export($reader->getGeo('127.0.0.1'));
var_export($reader->getGeo('192.168.0.1'));
var_export($reader->getGeo('217.25.213.220'));
```

Copyright and License
---------------------

[](#copyright-and-license)

- This software is Copyright (c) 2017 by [Pro.Motion](http://prmotion.ru).
- This is free software, licensed under the MIT license
- SypexGeo licensed under the BSD.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 81.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~172 days

Recently: every ~254 days

Total

7

Last Release

2278d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/275b392a2d69635a18ef9b0c999c366a87ea81a8e7846ef5f58a0db858357eb7?d=identicon)[kipkaev55](/maintainers/kipkaev55)

---

Top Contributors

[![kipkaev55](https://avatars.githubusercontent.com/u/13597272?v=4)](https://github.com/kipkaev55 "kipkaev55 (9 commits)")[![sizeg](https://avatars.githubusercontent.com/u/4047591?v=4)](https://github.com/sizeg "sizeg (2 commits)")

### Embed Badge

![Health badge](/badges/kipkaev55-sxgeo/health.svg)

```
[![Health](https://phpackages.com/badges/kipkaev55-sxgeo/health.svg)](https://phpackages.com/packages/kipkaev55-sxgeo)
```

###  Alternatives

[kenangundogan/fontisto

Fontisto gives you scalable vector icons that can instantly be customized: size, color, drop shadow and anything that can be done with the power of CSS.

4901.6k](/packages/kenangundogan-fontisto)[wehaa/liveupdate

A Laravel Nova field.

29184.8k](/packages/wehaa-liveupdate)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
