PHPackages                             aquinoaldair/placemex - 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. aquinoaldair/placemex

AbandonedArchivedLibrary

aquinoaldair/placemex
=====================

Estados, Municipios y Localidades de México

150PHP

Since Apr 11Pushed 5y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

PlaceMex
========

[](#placemex)

[![abandoned](https://camo.githubusercontent.com/aa3d15813b59e329b3a6b3d8a6fa0ee45e48ed700099a29210ae83a6a8ede449/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d6162616e646f6e65642d726564)](https://camo.githubusercontent.com/aa3d15813b59e329b3a6b3d8a6fa0ee45e48ed700099a29210ae83a6a8ede449/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d6162616e646f6e65642d726564)[![Total Downloads](https://camo.githubusercontent.com/ff180b424ae70b4e297bd5c9029b2c3c77dd248ea82bc5353f2fb3385fb52308/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617175696e6f616c646169722f706c6163656d65782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aquinoaldair/placemex)[![Build Status](https://camo.githubusercontent.com/2d43122c03184d3d57a66f67a83a8e0a3c541db885a8292300e11f2881c87fc5/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f617175696e6f616c646169722f706c6163656d65782f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/aquinoaldair/placemex)

Obtener los Estados, Municipios y Localidades de México obtenidos del [INEGI](https://developarts.com/db-estados-municipios-localidades-mexico)

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

[](#installation)

Via Composer

```
$ composer require aquinoaldair/placemex
```

Usage
-----

[](#usage)

```
$placemex = new \AquinoAldair\PlaceMex\PlaceMex();

## ESTADOS

#Obtener todos los estados
$placemex->states()->all();

#obtener estado por ID
$placemex->states()->findById(5);

#obtener estado por nombre específico
$placemex->states()->findByName("Oaxaca");

#obtener estados por busqueda de palabra
$placemex->states()->search("word");

## MUNICIPIOS

#obtener municipio por ID
$placemex->municipalities()->findById(100);

#obtener municipio por nombre específico
$placemex->municipalities()->findByName("mi municipio");

#obtener municipios por busqueda de palabra
$placemex->municipalities()->search("word");

#obtener municipios por ID Estado
$placemex->municipalities()->findByParentId(6);

## LOCALIDADES

#obtener localidad por ID
$placemex->localities()->findById(100);

#obtener localidad por nombre específico
$placemex->localities()->findByName("mi localidad");

#obtener localidades por busqueda de palabra
$placemex->localities()->search("word");

#obtener localidades por ID Municipio
$placemex->localities()->findByParentId(6);

## (EXTRA) OBTENER DATOS POR CODIGO POSTAL
$placemex->postalCode()->find(29000);
```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits
-------

[](#credits)

- [Aldair Aquino](https://github.com/aquinoaldair)
-

License
-------

[](#license)

license. Please see the [license file](license.md) for more information.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

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/004144adf14982da9b119b271eff4012375cc86abbb51a92b8e6675779613965?d=identicon)[aquinoaldair](/maintainers/aquinoaldair)

### Embed Badge

![Health badge](/badges/aquinoaldair-placemex/health.svg)

```
[![Health](https://phpackages.com/badges/aquinoaldair-placemex/health.svg)](https://phpackages.com/packages/aquinoaldair-placemex)
```

PHPackages © 2026

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