mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 15:50:03 +01:00
Introduces a Markdown linter for checking the Changelog format. "See Also" was transformed into a section to make it easier to handle it with the `Content` class. The "Related" linter was simplified to reflect that change too. An additional "alignment" parameter was added to markdown table generators, allowing the padding and headers to be explicitly marked with a specific left (-1), middle (0) or right(1) alignment. Existing files were fixed using the `fix` option after the changes.
1.4 KiB
1.4 KiB
Iban
Iban()
Validates whether the input is a valid IBAN (International Bank Account Number) or not.
v::iban()->assert('SE35 5000 0000 0549 1000 0003');
// Validation passes successfully
v::iban()->assert('ch9300762011623852957');
// → "ch9300762011623852957" must be a valid IBAN
v::iban()->assert('ZZ32 5000 5880 7742');
// → "ZZ32 5000 5880 7742" must be a valid IBAN
v::iban()->assert(123456789);
// → 123456789 must be a valid IBAN
v::iban()->assert('');
// → "" must be a valid IBAN
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 |