mirror of
https://github.com/Respect/Validation.git
synced 2024-06-01 21:32:14 +02:00
6173757f63
Previously, we were loading country info from a JSON file. This changes it to use PHP files instead. It also caches these resources across calls avoiding these files to be loaded more than once per process.
34 lines
765 B
PHP
34 lines
765 B
PHP
<?php
|
|
return [
|
|
"country" => "Brazil",
|
|
"subdivisions" => [
|
|
"AC" => "Acre",
|
|
"AL" => "Alagoas",
|
|
"AM" => "Amazonas",
|
|
"AP" => "Amapá",
|
|
"BA" => "Bahia",
|
|
"CE" => "Ceará",
|
|
"DF" => "Distrito Federal",
|
|
"ES" => "Espírito Santo",
|
|
"GO" => "Goiás",
|
|
"MA" => "Maranhão",
|
|
"MG" => "Minas Gerais",
|
|
"MS" => "Mato Grosso do Sul",
|
|
"MT" => "Mato Grosso",
|
|
"PA" => "Pará",
|
|
"PB" => "Paraíba",
|
|
"PE" => "Pernambuco",
|
|
"PI" => "Piauí",
|
|
"PR" => "Paraná",
|
|
"RJ" => "Rio de Janeiro",
|
|
"RN" => "Rio Grande do Norte",
|
|
"RO" => "Rondônia",
|
|
"RR" => "Roraima",
|
|
"RS" => "Rio Grande do Sul",
|
|
"SC" => "Santa Catarina",
|
|
"SE" => "Sergipe",
|
|
"SP" => "São Paulo",
|
|
"TO" => "Tocantins"
|
|
]
|
|
];
|