mirror of
https://github.com/Respect/Validation.git
synced 2026-03-18 08:09:51 +01:00
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-3numeric
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: