mirror of
https://github.com/Respect/Validation.git
synced 2024-06-29 02:30:06 +02:00
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.
28 lines
726 B
PHP
28 lines
726 B
PHP
<?php
|
|
return [
|
|
"country" => "Maldives",
|
|
"subdivisions" => [
|
|
"00" => "South Ari Atoll",
|
|
"01" => "Addu City",
|
|
"02" => "North Ari Atoll",
|
|
"03" => "Faadhippolhu",
|
|
"04" => "Felidhu Atoll",
|
|
"05" => "Hahdhunmathi",
|
|
"07" => "North Thiladhunmathi",
|
|
"08" => "Kolhumadulu",
|
|
"12" => "Mulaku Atoll",
|
|
"13" => "North Maalhosmadulu",
|
|
"14" => "North Nilandhe Atoll",
|
|
"17" => "South Nilandhe Atoll",
|
|
"20" => "South Maalhosmadulu",
|
|
"23" => "South Thiladhunmathi",
|
|
"24" => "North Miladhunmadulu",
|
|
"25" => "South Miladhunmadulu",
|
|
"26" => "Male Atoll",
|
|
"27" => "North Huvadhu Atoll",
|
|
"28" => "South Huvadhu Atoll",
|
|
"29" => "Fuvammulah",
|
|
"MLE" => "Male"
|
|
]
|
|
];
|