mirror of
https://github.com/Respect/Validation.git
synced 2024-06-29 02:30:06 +02:00
To update the list of countries, I decided to use the iso-codes [1] instead of GeoNames [2] as it seems like that one is more often updated. This commit will also create a Bash script to update that list in the future. [1]: https://salsa.debian.org/iso-codes-team/iso-codes [2]: http://www.geonames.org/ Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
423 B
423 B
CountryCode
v::countryCode()
Validates an ISO country code like US or BR.
v::countryCode()->validate('BR'); // true
This rules uses data from iso-codes.
See also: