Created
March 7, 2021 23:06
-
-
Save luizvaz/9fb3ca9081aef4e8f6cfc0198a93a5a7 to your computer and use it in GitHub Desktop.
Código IBGE x UF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Cada UF no Brasil, possui um Código IBGE. | |
* Esses Códigos são utilizados na emissão de Documentos Fiscais Eletrônicos | |
* (NFC-e, NF-e, CT-e, MDF-e e CF-e) e são informados no campo cUF. | |
* http://www.ibge.gov.br/home/geociencias/areaterritorial/principal.shtm | |
*/ | |
$codigo_IBGE_UF = [ | |
11 => ["Rondônia", "RO"], | |
12 => ["Acre", "AC"], | |
13 => ["Amazonas", "AM"], | |
14 => ["Roraima", "RR"], | |
15 => ["Pará", "PA"], | |
16 => ["Amapá", "AP"], | |
17 => ["Tocantins", "TO"], | |
21 => ["Maranhão", "MA"], | |
22 => ["Piauí", "PI"], | |
23 => ["Ceará", "CE"], | |
24 => ["Rio Grande do Norte", "RN"], | |
25 => ["Paraíba", "PB"], | |
26 => ["Pernambuco", "PE"], | |
27 => ["Alagoas", "AL"], | |
28 => ["Sergipe", "SE"], | |
29 => ["Bahia", "BA"], | |
31 => ["Minas Gerais", "MG"], | |
32 => ["Espírito Santo", "ES"], | |
33 => ["Rio de Janeiro", "RJ"], | |
35 => ["São Paulo", "SP"], | |
41 => ["Paraná", "PR"], | |
42 => ["Santa Catarina", "SC"], | |
43 => ["Rio Grande do Sul", "RS"], | |
50 => ["Mato Grosso do Sul", "MS"], | |
51 => ["Mato Grosso", "MT"], | |
52 => ["Goiás", "GO"], | |
53 => ["Distrito Federal", "DF"] | |
]; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment