PHPackages                             amstr1k/yii2-geography - 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. amstr1k/yii2-geography

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

amstr1k/yii2-geography
======================

Geography module with countries and cities of GEONAMES

14833[1 issues](https://github.com/amstr1k/yii2-geography/issues)PHP

Since Jan 18Pushed 11y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Geography module for Yii 2
==========================

[](#geography-module-for-yii-2)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist amstr1k/yii2-geography "*"

```

or add

```
"amstr1k/yii2-geography": "*"

```

to the require section of your `composer.json` file.

Configuration
-------------

[](#configuration)

Add yii2-geography to module section of each application config:

```
'modules' => [
  'geography' => [
    'class' => 'amstr1k\geography\Module'
  ],
]
```

Add yii2-geography to console config:

```
'geonames-integration'=>[
  'class'=>'amstr1k\geography\commands\GeoNamesController'
],
```

Apply migrations with console command

- `yii migrate --migrationPath=@amstr1k/geography/migrations`

Run command to import countries and cities

- `yii geonames-integration`

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/785f827ea74df0ed49f28800b0e1c45426321cfa2e4f562fc2226f1862d4ff4f?d=identicon)[amstr1k](/maintainers/amstr1k)

---

Top Contributors

[![amstr1k](https://avatars.githubusercontent.com/u/2950344?v=4)](https://github.com/amstr1k "amstr1k (14 commits)")

### Embed Badge

![Health badge](/badges/amstr1k-yii2-geography/health.svg)

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

###  Alternatives

[phmlabs/annovent

Simple lightweight event dispatcher using annotations for registering listeners

113.3k](/packages/phmlabs-annovent)

PHPackages © 2026

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