mirror of
https://github.com/Respect/Validation.git
synced 2024-06-13 11:12:18 +02:00
27d7db5cc6
Since we now have PHP ISO Codes as a dependency[1], it doesn't make
sense to keep dealing with this data ourselves.
[1]: 04b2722d02
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
855 B
855 B
CurrencyCode
CurrencyCode()
CurrencyCode("alpha-3"|"numeric" $set)
Validates an ISO 4217 currency code.
This rule requires sokil/php-isocodes and sokil/php-isocodes-db-only to be installed.
v::currencyCode()->validate('GBP'); // true
This rule supports the two ISO 4217 sets:
alpha-3
numeric
Categorization
- ISO codes
- Localization
Changelog
Version | Description |
---|---|
3.0.0 | Require sokil/php-isocodes and sokil/php-isocodes-db-only |
2.0.0 | Became case-sensitive |
1.0.0 | Created |
See also: