PHPackages                             yarull/mex\_cities - 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. yarull/mex\_cities

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

yarull/mex\_cities
==================

Mexico states and cities database

v0.4(7y ago)2245MITTSQLPHP &gt;=7.0.0

Since Sep 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/yarull/mex_cities)[ Packagist](https://packagist.org/packages/yarull/mex_cities)[ RSS](/packages/yarull-mex-cities/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

mex\_cities
===========

[](#mex_cities)

#### Installation

[](#installation)

`composer require yarull/mex_cities`

#### Add this line to your conf/app.php file

[](#add-this-line-to-your-confappphp-file)

`Yarull\Mex_cities\MexCitiesServiceProvider::class in config/app.php`

#### Create migrations for data

[](#create-migrations-for-data)

`php artisan migrate --path=/vendor/yarull/mex_cities/src/migrations`

#### Add States and Cities to database

[](#add-states-and-cities-to-database)

`php artisan db:seed --class=Yarull\\Mex_cities\\EstadosCiudadesSeeder`

#### URLs

[](#urls)

`/api/estados``/api/municipios`

##### Parameters

[](#parameters)

```
"q" for name of state or cities in both urls
"estado" for filter cities by state in the second url

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

4

Last Release

2834d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4218465?v=4)[Habib Yarull Alvarez Herrera](/maintainers/yarull)[@yarull](https://github.com/yarull)

---

Top Contributors

[![yarull](https://avatars.githubusercontent.com/u/4218465?v=4)](https://github.com/yarull "yarull (18 commits)")

---

Tags

mexicoestadosciudades

### Embed Badge

![Health badge](/badges/yarull-mex-cities/health.svg)

```
[![Health](https://phpackages.com/badges/yarull-mex-cities/health.svg)](https://phpackages.com/packages/yarull-mex-cities)
```

###  Alternatives

[eclipxe/cfdiutils

PHP Common utilities for Mexican CFDI 3.2, 3.3 &amp; 4.0

140141.3k6](/packages/eclipxe-cfdiutils)[phpcfdi/cfdi-sat-scraper

Web Scraping para extraer facturas electrónicas desde la página del SAT

9422.4k](/packages/phpcfdi-cfdi-sat-scraper)[phpcfdi/rfc

PHP library to deal with Mexican RFC

2575.1k4](/packages/phpcfdi-rfc)[phpcfdi/cfdi-cleaner

Clean up Mexican CFDI

1341.0k1](/packages/phpcfdi-cfdi-cleaner)[jansenfelipe/cidades-gratis

Com esse pacote você poderá consultar, gratuitamente, Cidades diretamente no site do IBGE.

423.5k](/packages/jansenfelipe-cidades-gratis)[mixdinternet/cities

Pacote com os estados, cidades e bairros do Brasil

231.4k](/packages/mixdinternet-cities)

PHPackages © 2026

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