PHPackages                             rafwell/laravel-municipios - 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. [Database &amp; ORM](/categories/database)
4. /
5. rafwell/laravel-municipios

ActiveLibrary[Database &amp; ORM](/categories/database)

rafwell/laravel-municipios
==========================

Municípios e UFS para Laravel com Models, Migrations e Seeds.

5201PHP

Since Aug 11Pushed 9y ago3 watchersCompare

[ Source](https://github.com/rafwell/laravel-municipios)[ Packagist](https://packagist.org/packages/rafwell/laravel-municipios)[ RSS](/packages/rafwell-laravel-municipios/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

\##Sobre o projeto **rafwell/laravel-municipios** é um pacote com models, migrations e seeds de ufs e municipios brasileiros para utilizar em sistemas feitos em Laravel &gt; 5.

\##Instalação via Composer

1. Adicione ao seu composer.json: `"rafwell/laravel-municipios": "dev-master"` e execute um `composer update`.
2. Adicione ao seu `app/config/app.php` o seguinte provider: ```
    Rafwell\Municipios\RafwellMunicipiosServiceProvider::class

    ```
3. Execute: `php artisan vendor:publish`. Isto criará no seu projeto dos models na pasta app: UF e Municipio, migrations para criar tabelas: ufs e municipios (com fk para a tabela ufs) e seeds para a carga de dados em ambas tabelas.
4. Execute os migrations para criar as tabelas: `php artisan migrate`
5. Execute `composer dumpautoload`.
6. Execute os seeds para dar carga nas tabelas: `php artisan db:seed --class=insere_ufs` e `php artisan db:seed --class=insere_municipios`.

\##Instalação manual Clone o repositório ou baixe a última versão e leve os arquivos da pasta src/ para dentro do seu projeto. Em seguida, execute `composer dumpautoload`, `php artisan migrate`, `php artisan db:seed --class=insere_ufs` e `php artisan db:seed --class=insere_municipios`.

\##Utilização Após a configuração, adicione os models aos seus controllers e utilize como desejar.

\##Observações O id da tabela municipios é o código IBGE do município. A coluna uf é uma fk para a tabela municipios. Se encontrar algum município que não está no pacote, abra um Issue ou envie-nos um PR. :)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

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

---

Top Contributors

[![rafwell](https://avatars.githubusercontent.com/u/2893078?v=4)](https://github.com/rafwell "rafwell (6 commits)")

### Embed Badge

![Health badge](/badges/rafwell-laravel-municipios/health.svg)

```
[![Health](https://phpackages.com/badges/rafwell-laravel-municipios/health.svg)](https://phpackages.com/packages/rafwell-laravel-municipios)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198628.3k10](/packages/pgvector-pgvector)

PHPackages © 2026

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