pedrommone/brazilian-local-codes

A full indexed local codes by city and state

0.1.0 2020-07-31 18:23 UTC

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