PHPackages                             jlorente/yii2-locations-spain - 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. jlorente/yii2-locations-spain

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

jlorente/yii2-locations-spain
=============================

A Yii2 extension of the jlorente/yii2-locations module that provides the module with all the spanish regions and cities.

0.6.3(7y ago)0581MITPHP

Since Feb 9Pushed 7y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (1)Versions (6)Used By (1)

Yii2 Locations Spain
====================

[](#yii2-locations-spain)

A Yii2 extension of the jlorente/yii2-locations module that provides the module with all the spanish regions and cities.

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

[](#installation)

Include the package as dependency under the composer.json file.

To install, either run

```
$ php composer.phar require jlorente/yii2-locations-spain "*"
```

or add

```
...
    "require": {
        // ... other configurations ...
        "jlorente/yii2-locations-spain": "*"
    }
```

to the `require` section of your `composer.json` file and run the following commands from your project directory.

```
$ composer update
```

If you didn't install the jlorente/yii2-locations module previously, you must follow its installation process before continuing. The module should have been downloaded in the last "composer update" so you must only run its migrations and configure it.

```
$ ./yii migrate --migrationPath=@vendor/jlorente/yii2-locations-spain/src
```

License
-------

[](#license)

Copyright © 2015 José Lorente Martín .

Licensed under the MIT license. See LICENSE.txt for details.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

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

Total

5

Last Release

2575d ago

### Community

Maintainers

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

---

Top Contributors

[![jlorente](https://avatars.githubusercontent.com/u/301741?v=4)](https://github.com/jlorente "jlorente (9 commits)")

---

Tags

yii2locationcityregioncitiesspanishspainregions

### Embed Badge

![Health badge](/badges/jlorente-yii2-locations-spain/health.svg)

```
[![Health](https://phpackages.com/badges/jlorente-yii2-locations-spain/health.svg)](https://phpackages.com/packages/jlorente-yii2-locations-spain)
```

###  Alternatives

[kartik-v/yii2-ipinfo

An IP address information display widget for Yii 2.0 with country flag and geo position info.

2832.6k1](/packages/kartik-v-yii2-ipinfo)[gerardojbaez/geodata

Laravel 5.2 package that provides basic geographical data like Countries, Regions and Cities.

3211.9k](/packages/gerardojbaez-geodata)[usamamuneerchaudhary/country-city-state

Country City State Data Provider for Laravel 12+

242.6k](/packages/usamamuneerchaudhary-country-city-state)

PHPackages © 2026

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