PHPackages                             alestro/ipgeobase - 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. alestro/ipgeobase

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

alestro/ipgeobase
=================

IpGeoBase in sql

v1.0(8y ago)129MITPHPPHP &gt;= 7.0.0

Since Nov 4Pushed 5y agoCompare

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

READMEChangelog (1)DependenciesVersions (3)Used By (0)

Установка
=========

[](#установка)

$ composer require shelamkoff/ipgeobase

Использование :
===============

[](#использование-)

use alestro\\ipgeobase\\IpGeoBase;

$geobase = new IpGeoBase($pdo) или $geobase = new IpGeoBase($dsn, $user, $password);

$geobase-&gt;create() // Создаст таблицы geobase и geobase\_cities в бд и заполнит их.

$geobase-&gt;update() // Обновит базу.

$data = $geobase-&gt;find('217.107.124.206'); // Выбросит Uncaught Exception: Invalid ip-adress. если ip не валиден и Uncaught Exception: Ip-aress not found in the database. если ip нет в базе

var\_dump($data);

Для Российских и Украинских ip:

```
array(11) {
  ["long_ip1"]=>
  string(10) "3647684608"
  ["long_ip2"]=>
  string(10) "3647717375"
  ["ip1"]=>
  string(12) "217.107.64.0"
  ["ip2"]=>
  string(15) "217.107.191.255"
  ["country"]=>
  string(2) "RU"
  ["city_id"]=>
  string(4) "2097"
  ["city"]=>
  string(12) "Москва"
  ["region"]=>
  string(12) "Москва"
  ["district"]=>
  string(56) "Центральный федеральный округ"
  ["latitude"]=>
  string(7) "55.7558"
  ["longitude"]=>
  string(7) "37.6176"
}
```

Для всех остальных :

```
array(6) {
  ["long_ip1"]=>
  string(8) "84557824"
  ["long_ip2"]=>
  string(8) "84557824"
  ["ip1"]=>
  string(9) "5.10.64.0"
  ["ip2"]=>
  string(9) "5.10.64.0"
  ["country"]=>
  string(2) "NL"
  ["city_id"]=>
  NULL
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

2

Last Release

3108d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e09095c139201e17e8842e8ad5bb3a8d33565076e6daa0685af4c381aa2cb44f?d=identicon)[Shelamkoff](/maintainers/Shelamkoff)

---

Top Contributors

[![Shelamkoff](https://avatars.githubusercontent.com/u/20490712?v=4)](https://github.com/Shelamkoff "Shelamkoff (30 commits)")

### Embed Badge

![Health badge](/badges/alestro-ipgeobase/health.svg)

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

###  Alternatives

[symfony/polyfill-uuid

Symfony polyfill for uuid functions

688335.4M63](/packages/symfony-polyfill-uuid)[spatie/error-solutions

This is my package error-solutions

6853.2M11](/packages/spatie-error-solutions)[phpflo/phpflo

Flow-based programming for PHP

2173.3k4](/packages/phpflo-phpflo)[eftec/autoloadone

AutoloadOne is a program that generates an autoload class for PHP.

403.4k](/packages/eftec-autoloadone)[ys-tools/default-theme-configuration-bundle

OroCommerce Default Theme Configuration Bundle

124.2k](/packages/ys-tools-default-theme-configuration-bundle)

PHPackages © 2026

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