respect-validation/docs/rules/CountryCode.md
Henrique Moody f580e187d0
Update list of Country Codes
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>
2019-05-26 14:59:41 +02:00

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: