Login   Register  
PHP Classes
elePHPant
Icontem

Checknum Class: Calculate verification numbers using Luhn mod10

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2011-03-02 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 482 All time: 5,376 This week: 1,545Up
Version License PHP version Categories  
checknum 1.0GNU General Public Lice...3.0Validation
Description Author  

This class can calculate verification numbers using Luhn mod10 algorithm.

It can take a string of digits and calculate the verification digit according to Peter Luhn algorithm.

The class can also calculate what digit should be added before or after a sequence of digits to make the resulting number validate according to the Luhn algorithm.

Picture of Pierre FAUQUE
Name: Pierre FAUQUE <contact>
Classes: 10 packages by
Country: France France
Age: 67
All time rank: 19012 in France France
Week rank: 131 Up7 in France France Up
Innovation award
Innovation award
Nominee: 4x

Winner: 1x

  Files folder image Files  
File Role Description
Plain text file checknum.php Class Class itself
Accessible without login Plain text file example.php Example example of use

 Version Control Unique User Downloads Download Rankings  
 0%Total:482All time:5,376
 This week:0This week:1,545Up