PHPackages                             cimus/ip-geo-base - 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. cimus/ip-geo-base

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

cimus/ip-geo-base
=================

IpGeoBase

v1.0.5(10y ago)58.8k21MITPHPPHP &gt;=5.3.0

Since Dec 23Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/Cimus/ipGeoBase)[ Packagist](https://packagist.org/packages/cimus/ip-geo-base)[ Docs](https://github.com/Cimus/ipGeoBase)[ RSS](/packages/cimus-ip-geo-base/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (9)Used By (1)

ipGeoBase
=========

[](#ipgeobase)

Данный модуль предназначен для определения географических данных по IP адресу. Используются текстовые базы сервиса гео-локации ipgeobase.ru, которые преобразуются в бинарный формат для оптимизации поиска.

Installation
------------

[](#installation)

### Composer

[](#composer)

Вы можете использовать Composer для автоматизированного процесса установки:

```
$ php composer.phar require cimus/ip-geo-base
```

или вручную добавте ссылку в ваш файл `composer.json` и запустить` $ PHP composer.phar update`:

```
{
    "require" : {
        "cimus/ip-geo-base": "^1.0"
    },
}
```

Usage
-----

[](#usage)

Перед первым использованием необходимо инициализировать БД, для этого нужно запустить команды

```
require_once 'Util/IpGeoBaseUtil.php';

use Cimus\IpGeoBase\Util\IpGeoBaseUtil;

$path = __DIR__ . '/DB';
$util = new IpGeoBaseUtil();
$util->loadArchive($path);
$util->convertInBinary($path);
```

> **Note.** Данные команды можно повесить на крон и запускать с периодичностью 1 раз в неделю. Данные обнавляются каждый день.

Определение географических данных

```
require_once 'IpGeoBase.php';

use Cimus\IpGeoBase\IpGeoBase;

$path = __DIR__ . '/DB';
$search = new IpGeoBase($path);
$info =  $search->search('176.121.128.1');

print_r($info);

Array
(
    [country] => RU
    [city] => Чебоксары
    [region] => Республика Чувашия
    [district] => Приволжский федеральный округ
    [latitude] => 56.137451
    [longitude] => 47.244030
    [ip_start] => 176.121.128.0
    [ip_stop] => 176.121.191.255
)
```

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance54

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~0 days

Total

8

Last Release

3844d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10470794?v=4)[Sergey Ageev](/maintainers/Cimus)[@Cimus](https://github.com/Cimus)

---

Top Contributors

[![Cimus](https://avatars.githubusercontent.com/u/10470794?v=4)](https://github.com/Cimus "Cimus (1 commits)")[![Dicoders](https://avatars.githubusercontent.com/u/8055462?v=4)](https://github.com/Dicoders "Dicoders (1 commits)")

---

Tags

ipgeobaseip Geo Base

### Embed Badge

![Health badge](/badges/cimus-ip-geo-base/health.svg)

```
[![Health](https://phpackages.com/badges/cimus-ip-geo-base/health.svg)](https://phpackages.com/packages/cimus-ip-geo-base)
```

###  Alternatives

[setono/sylius-gift-card-plugin

Gift card plugin for Sylius

52181.0k1](/packages/setono-sylius-gift-card-plugin)

PHPackages © 2026

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