PHPackages                             wdmg/yii2-geo - 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. wdmg/yii2-geo

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

wdmg/yii2-geo
=============

Geo module with countries and cities

1.2.0(2y ago)25524[1 issues](https://github.com/wdmg/yii2-geo/issues)[1 PRs](https://github.com/wdmg/yii2-geo/pulls)1MITPHP

Since Jan 2Pushed 2y ago3 watchersCompare

[ Source](https://github.com/wdmg/yii2-geo)[ Packagist](https://packagist.org/packages/wdmg/yii2-geo)[ Docs](https://github.com/wdmg/yii2-geo)[ RSS](/packages/wdmg-yii2-geo/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (16)Used By (1)

[![Progress](https://camo.githubusercontent.com/dccea8d8aeed2f3bbad8d539958795bf54a03a62c61f496084516c1b1845a9ee/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72657175697265642d596969325f76322e302e33332d626c75652e737667)](https://packagist.org/packages/yiisoft/yii2)[![Github all releases](https://camo.githubusercontent.com/1db01ece2ee38afe7e7dc703a2d27e3f16c8c48db48b84ae2cfd93fbc78e9e15/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f77646d672f796969322d67656f2f746f74616c2e737667)](https://GitHub.com/wdmg/yii2-geo/releases/)[![GitHub version](https://camo.githubusercontent.com/ca8ba624f61556f855cbbedbda63f92ae0a568693632de203fa616ec267c1d28/68747470733a2f2f62616467652e667572792e696f2f67682f77646d67253246796969322d67656f2e737667)](https://github.com/wdmg/yii2-geo)[![Progress](https://camo.githubusercontent.com/315c55c18b58f54e699e6de550cbbec72c9adeebced7d22e2822458e07822fb3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f67726573732d696e5f646576656c6f706d656e742d7265642e737667)](https://camo.githubusercontent.com/315c55c18b58f54e699e6de550cbbec72c9adeebced7d22e2822458e07822fb3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f67726573732d696e5f646576656c6f706d656e742d7265642e737667)[![GitHub license](https://camo.githubusercontent.com/30fd32f70458b2130757f9b6882f439871bca2b7d0ce53277006355ad88e0f24/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f77646d672f796969322d67656f2e737667)](https://github.com/wdmg/yii2-geo/blob/master/LICENSE)

Yii2 GEO Module
===============

[](#yii2-geo-module)

Geo module with countries and cities

Requirements
============

[](#requirements)

- PHP 5.6 or higher
- Yii2 v.2.0.33 and newest
- [Yii2 Base](https://github.com/wdmg/yii2-base) module (required)

Installation
============

[](#installation)

To install the module, run the following command in the console:

`$ composer require "wdmg/yii2-geo"`

After configure db connection, run the following command in the console:

`$ php yii geo/init`

And select the operation you want to perform:

1. Apply all module migrations
2. Revert all module migrations
3. Batch insert demo data\*

Migrations
==========

[](#migrations)

In any case, you can execute the migration and create the initial data, run the following command in the console:

`$ php yii migrate --migrationPath=@vendor/wdmg/yii2-geo/migrations`

Configure
=========

[](#configure)

To add a module to the project, add the following data in your configuration file:

```
'modules' => [
    ...
    'geo' => [
        'class' => 'wdmg\geo\Module',
        'routePrefix' => 'admin'
    ],
    ...
],

```

Routing
=======

[](#routing)

Use the `Module::dashboardNavItems()` method of the module to generate a navigation items list for NavBar, like this:

```

```

Status and version \[in progress development\]
==============================================

[](#status-and-version-in-progress-development)

- v.1.2.0 - Update copyrights, fix menu dashboard
- v.1.1.8 - Up to date dependencies
- v.1.1.7 - Fixed deprecated class declaration

\* - The demo database contains 144 countries, 111 regions and 4923 cities of such countries as: Russia, Ukraine, Kazakhstan, Azerbaijan, Belarus, Moldova, Poland, South Ossetia, Georgia, Kyrgyzstan, Uzbekistan and contains a total of 20863 translations in EN, UK (Ukrainian), PL, DE. Sources of demo data of countries, cities and regions are initially presented in Russian.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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 ~117 days

Recently: every ~372 days

Total

15

Last Release

1042d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1635637?v=4)[Alexsander Vyshnyvetskyy](/maintainers/alex-wdmg)[@alex-wdmg](https://github.com/alex-wdmg)

---

Top Contributors

[![alex-wdmg](https://avatars.githubusercontent.com/u/1635637?v=4)](https://github.com/alex-wdmg "alex-wdmg (77 commits)")

---

Tags

citiescountriesgeogeo-systemwdmgyii2yii2-extensionyii2-geocountriesyii2geocitywdmgyii2-geogeo system

### Embed Badge

![Health badge](/badges/wdmg-yii2-geo/health.svg)

```
[![Health](https://phpackages.com/badges/wdmg-yii2-geo/health.svg)](https://phpackages.com/packages/wdmg-yii2-geo)
```

###  Alternatives

[omnilight/yii2-sypexgeo

Yii2 extension for Sypex Geo API (http://sypexgeo.net)

17102.0k](/packages/omnilight-yii2-sypexgeo)

PHPackages © 2026

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