Recommend this page to a friend! |
Download .zip |
Info | View files (2) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2011-12-19 (4 years ago) | Not enough user ratings | Total: 366 | All time: 6,472 This week: 874 |
Version | License | PHP version | Categories | |||
iso-7064-mod-97-10 1.0.0 | GNU General Publi... | 5.0 | Algorithms, PHP 5, Finances |
Description | Author | |||||||||||||
This class can encode and verify number checksum with ISO 7064 mod 97 10 . |
|
Description =========== Algoritmo que calcula numero de controle, descrito em ISO 7064, Mod 97 10. Normalmente usado para validar IBAN e NIBs de contas bancárias. Methods ======= class ISO7064Mod97_10 - encode( string/integer $input ) return checksum number - verify( string/integer $input ) verify if input are valid with your check digits - checkCode( string/integer $input ) return only check digits of input - computeCheck( string/integer $input ) return mod 97 of input - getCheck( string/integer $input ) return only chek digits of input - getData( string/integer $input ) return value of input without check digits Example ======= require 'ISO7064Mod97_10.php' $c = new ISO7064Mod97_10(); $n = 107571; $yourNum = $c->encode($n); var_dump($yourNum); //int(10757107) var_dump($c->verify($yourNum)); $validNumber = '10757107'; $invalidNumber = '10767107'; var_dump($c->verify($validNumber)); var_dump($c->verify($invalidNumber)); Qualquer dúvida entre em contacto <stvkoch at gmail.com> Steven Koch |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.