phalcon / cphalcon

High performance, full-stack PHP framework delivered as a C extension.
https://phalcon.io
BSD 3-Clause "New" or "Revised" License
10.78k stars 1.97k forks source link

[NFR] Iban validator #2475

Closed ruudboon closed 7 years ago

ruudboon commented 10 years ago

It would be nice if Phalcon can validate the International Bank Account Number (IBAN).

From what I found the base of an IBAN is validated by converting it into an integer and performing a basic mod-97 operation (as described in ISO 7064) on it. If the IBAN is valid, the remainder equals 1. Besides that I think you also need to parse the local information about the country and bank. Maybe we could take a look at the Zf2 validator.

https://github.com/zendframework/zf2/blob/master/library/Zend/Validator/Iban.php http://framework.zend.com/apidoc/2.0/classes/Zend.Validator.Iban.html

sergeyklay commented 7 years ago

IBAN banking codes is too specific to be in core. This feature request should be moved to the Incubator.

sergeyklay commented 7 years ago

This issue was moved to phalcon/incubator#809