Wallogit.com
2017 © Pedro Peláez
php-iban is a library implementing the pure ISO/IEC 7064 checksum functions.
This is a reference implementation of the various 'pure' ISO7064 algorithms in PHP. It is 100% generated code, from algorithm metadata. Note that the 'hybrid' algorithms are not implemented., (*1)
| Algorithm | Function name | Input | Output |
|---|---|---|---|
| ISO/IEC 7064, MOD 11-2 | iso7064_mod11_2() |
Numeric | 1 x Alphanumeric |
| ISO/IEC 7064, MOD 37-2 | iso7064_mod37_2() |
Alphanumeric | 1 x Alphanumeric |
| ISO/IEC 7064, MOD 97-10 | iso7064_mod97_10() |
Numeric | 2 x Numeric |
| ISO/IEC 7064, MOD 661-26 | iso7064_mod661_26() |
Alphabetic | 2 x Alphabetic |
| ISO/IEC 7064, MOD 1271-36 | iso7064_mod1271_36() |
Alphanumeric | 2 x Alphanumeric |
August 2020 * Version 1.0.1 released: Various edge case fixes by neo954. Thanks!, (*3)
February 2016 * Version 1.0.0 released: First stable release passing tests. * Version 0.1.2 released: On the way to functionality. * Version 0.1.1 released: Syntax error resolved. * Version 0.1.0 released: Absolutely and completely untested! :), (*4)
Inspiration was @danieltwager's ISO7064 Java Library and the pressing need to auto-detect checksum algorithms for php-iban. Annoyingly, there didn't seem to be any way to define normal functions dynamically in PHP, so I had to settle for code generation instead of a reflective implementation., (*5)