mirror of
https://github.com/Respect/Validation.git
synced 2024-06-09 17:22:20 +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.
24 lines
535 B
PHP
24 lines
535 B
PHP
<?php
|
|
return [
|
|
"country" => "New Zealand",
|
|
"subdivisions" => [
|
|
"AUK" => "Auckland",
|
|
"BOP" => "Bay of Plenty",
|
|
"CAN" => "Canterbury",
|
|
"CIT" => "Chatham Islands Territory",
|
|
"GIS" => "Gisborne",
|
|
"HKB" => "Hawke's Bay",
|
|
"MBH" => "Marlborough",
|
|
"MWT" => "Manawatu-Wanganui",
|
|
"NSN" => "Nelson",
|
|
"NTL" => "Northland",
|
|
"OTA" => "Otago",
|
|
"STL" => "Southland",
|
|
"TAS" => "Tasman",
|
|
"TKI" => "Taranaki",
|
|
"WGN" => "Wellington",
|
|
"WKO" => "Waikato",
|
|
"WTC" => "West Coast"
|
|
]
|
|
];
|