PHPackages                             brew/brazil-locations - 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. brew/brazil-locations

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

brew/brazil-locations
=====================

Package para adicionar estados e cidades do Brasil.

0.0.2(1y ago)61.9kMITPHP

Since Nov 5Pushed 9mo ago2 watchersCompare

[ Source](https://github.com/brew-apps/brazil-locations)[ Packagist](https://packagist.org/packages/brew/brazil-locations)[ RSS](/packages/brew-brazil-locations/feed)WikiDiscussions main Synced 3w ago

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

Brazil Locations Package
========================

[](#brazil-locations-package)

Package Laravel para adicionar tabelas de estados e cidades do Brasil ao banco de dados.

Instalação
----------

[](#instalação)

1. Instale o pacote:

```
composer require brew/brazil-locations
```

2. Execute o comando de instalação:

```
php artisan brazil-locations:install
```

Modelos
-------

[](#modelos)

A package inclui os modelos Eloquent `State` e `City` para facilitar a interação com as tabelas.

### Uso

[](#uso)

**Listar todos os estados:**

```
use App\Models\State;

$states = State::all();
```

**Obter as cidades de um estado:**

```
$state = State::find(1);
$cities = $state->cities;
```

**Obter o estado de uma cidade:**

```
use App\Models\City;

$city = City::find(1);
$state = $city->state;
```

Licença
-------

[](#licença)

MIT

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance48

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity31

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

594d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8321388?v=4)[Douglas Maia](/maintainers/douglasmaiabr)[@douglasmaiabr](https://github.com/douglasmaiabr)

---

Top Contributors

[![douglasmaiabr](https://avatars.githubusercontent.com/u/8321388?v=4)](https://github.com/douglasmaiabr "douglasmaiabr (8 commits)")

### Embed Badge

![Health badge](/badges/brew-brazil-locations/health.svg)

```
[![Health](https://phpackages.com/badges/brew-brazil-locations/health.svg)](https://phpackages.com/packages/brew-brazil-locations)
```

###  Alternatives

[spatie/laravel-dashboard

A dashboard for Laravel

574166.1k96](/packages/spatie-laravel-dashboard)

PHPackages © 2026

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