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

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

derekisbusy/yii2-geo
====================

Country, state, county, city and zip codes with CRUD controls.

226PHP

Since Jul 17Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Geographical Locations
======================

[](#geographical-locations)

Country, state, county, city and zip codes with CRUD controls.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist derekisbusy/yii2-geo "*"

```

or add

```
"derekisbusy/yii2-geo": "*"

```

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

### Update database schema

[](#update-database-schema)

The last thing you need to do is updating your database schema by applying the migrations. Make sure that you have properly configured `db` application component and run the following command:

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

Since there are lots of records in the migrations you may need to temporarily remove the memory limit in your `yii` file by adding the following.

```
php_ini('memory_limit', '-1');
```

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
```
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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/b869af2c6981c02841e47e2e56a8753f51f3cc0594f6e2ac8742297cb9a828bc?d=identicon)[derekisbusy](/maintainers/derekisbusy)

---

Top Contributors

[![derekisbusy](https://avatars.githubusercontent.com/u/5118781?v=4)](https://github.com/derekisbusy "derekisbusy (185 commits)")

---

Tags

crud-controllersdatabase-schemageographic-locationsyii2yii2-extension

### Embed Badge

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

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

###  Alternatives

[koalafacade/filament-navigation-holder

A holder package for filament navigation scroll position

1617.8k](/packages/koalafacade-filament-navigation-holder)

PHPackages © 2026

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