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

ActiveLibrary

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

Package para adicionar estados e cidades do Brasil.

0.0.2(1y ago)61.5k↓100%MITPHP

Since Nov 5Pushed 7mo 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 1mo 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

31

—

LowBetter than 68% of packages

Maintenance55

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity30

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

549d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/454523ff84b0d7c8fbfda7b2023148b644b5e5d1e98eb50c12ecf220db218070?d=identicon)[douglasmaiabr](/maintainers/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)
```

PHPackages © 2026

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