pedrommone / brazilian-local-codes
A full indexed local codes by city and state
Installs: 45 451
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/pedrommone/brazilian-local-codes
Requires
- php: ^7.0|^6.0
Requires (Dev)
- guzzlehttp/guzzle: ^7.0
- symfony/console: ^5.1
- symfony/css-selector: ^5.1
- symfony/dom-crawler: ^5.1
This package is auto-updated.
Last update: 2025-11-08 10:41:54 UTC
README
A full indexed local codes by city and state
How it works
There is a public file, that holds all available Brazilian local codes. We crawled it and transformed it as json.
The json file holds all brazilian local codes using the following object:
[
{
"city": "ACREL\u00c2NDIA",
"code": 68,
"state": "AC"
},
...
]
Using PHP
Require it composer require pedrommone/brazilian-local-coodes then use the proxy interface \BrazilianLocalCodes\Proxy::codes()
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