respect-validation/docs/rules/Iban.md
Henrique Moody 48405271c5
Replace placeholder "name" with "subject"
The `{{name}}` placeholder could represent different things depending on
the state of the Result, and referring to it as `{{name}}` seems
arbitrary. This commit changes it to `{{subject}}`, which is much more
generic and it describes well what that placeholder can mean.
2025-12-26 21:30:01 +01:00

1.2 KiB

Iban

  • v::iban()

Validates whether the input is a valid IBAN (International Bank Account Number) or not.

v::iban()->isValid('SE35 5000 0000 0549 1000 0003'); // true
v::iban()->isValid('ch9300762011623852957'); // true

v::iban()->isValid('ZZ32 5000 5880 7742'); // false
v::iban()->isValid(123456789); // false
v::iban()->isValid(''); // false

Templates

Iban::TEMPLATE_STANDARD

Mode Template
default {{subject}} must be a valid IBAN
inverted {{subject}} must not be a valid IBAN

Template placeholders

Placeholder Description
subject The validated input or the custom validator name (if specified).

Categorization

  • Banking

Changelog

Version Description
2.0.0 Created

See also: