tao-test/app/vendor/respect/validation/docs/rules/BankAccount.md

22 lines
477 B
Markdown
Raw Normal View History

2022-08-29 20:14:13 +02:00
# BankAccount
- `v::bankAccount(string $countryCode, string $bank)`
Validates a bank account for a given bank.
```php
v::bankAccount("de", "70169464")->validate("1112"); // true
v::bankAccount("de", "70169464")->validate("1234"); // false
```
These country codes are supported:
* "de" (Germany) - You must add `"malkusch/bav": "~1.0"` to your `require` property on composer.json file.
***
See also:
* [Bank](Bank.md)
* [Bic](Bic.md)
* [CreditCard](CreditCard.md)