pedrommone / brazilian-local-codes
A full indexed local codes by city and state
Installs: 33 998
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
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: 2024-12-08 08:30:13 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