PHPackages                             pedrommone/brazilian-local-codes - 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. pedrommone/brazilian-local-codes

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

pedrommone/brazilian-local-codes
================================

A full indexed local codes by city and state

0.1.0(5y ago)148.2k↑11.5%MITPHPPHP ^7.0|^6.0

Since Jul 31Pushed 5y agoCompare

[ Source](https://github.com/pedrommone/brazilian-local-codes)[ Packagist](https://packagist.org/packages/pedrommone/brazilian-local-codes)[ RSS](/packages/pedrommone-brazilian-local-codes/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Brazilian Local Codes
=====================

[](#brazilian-local-codes)

A full indexed local codes by city and state

How it works
============

[](#how-it-works)

There is a [public file](https://www.anatel.gov.br/legislacao/resolucoes/16-2001/383-resolucao-263), that holds all available Brazilian local codes. We crawled it and transformed it as json.

The [json file](data/local-codes.json) holds all brazilian local codes using the following object:

```
[
  {
    "city": "ACREL\u00c2NDIA",
    "code": 68,
    "state": "AC"
  },
  ...
]
```

### Using PHP

[](#using-php)

Require it `composer require pedrommone/brazilian-local-coodes` then use the proxy interface `\BrazilianLocalCodes\Proxy::codes()`

Updating
========

[](#updating)

I don't think it will change in any future, but I'll keep the crawler engine here.

Can you run by yourself? Simple run `docker-compose run app ./app crawler`

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

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

Unknown

Total

1

Last Release

2111d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1310609?v=4)[Pedro Maia](/maintainers/pedrommone)[@pedrommone](https://github.com/pedrommone)

---

Top Contributors

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

---

Tags

brazilianlocal-codes

### Embed Badge

![Health badge](/badges/pedrommone-brazilian-local-codes/health.svg)

```
[![Health](https://phpackages.com/badges/pedrommone-brazilian-local-codes/health.svg)](https://phpackages.com/packages/pedrommone-brazilian-local-codes)
```

PHPackages © 2026

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