PHP Luhn Algorithm: Calculate and validate a Luhn check digit

Recommend this page to a friend!

Picture of Rolands Kusins
Name: Rolands Kusins <contact>
Classes: 2 packages by
Country: Latvia Latvia
Age: 33
All time rank: 29319 in Latvia Latvia
Week rank: 713 3 in Latvia Latvia
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

  Detailed description   Download .zip .tar.gz   Install with Composer  
This class can calculate and validate with the Luhn check digit.

It can take a given number and calculate the check digit using the Luhn (modulus 10) algorith.

The class can also verify if a number is valid by calculating the Luhn check digit and comparing it with the last digit of the number.

  Classes of Rolands Kusins  >  PHP Luhn Algorithm  >  Download .zip .tar.gz  >  Support forum (1)  >  Blog  >  Latest changes  
Name: PHP Luhn Algorithm
Base name: luhn-algorithm
Description: Calculate and validate a Luhn check digit
Version: 0.3
PHP version: 5
License: GNU General Public License (GPL)
All time users: 316 users
All time rank: 7162
Week users: 0 users
Week rank: 237
  Groups   User ratings   Applications   Files  

Algorithms Numerical and statistical algorithms View top rated classes
PHP 5 Classes using PHP 5 specific features View top rated classes
Validation Validation algorithms View top rated classes

  User ratings  
Not enough user ratings

  Applications that use this package  
No pages of applications that use this class were specified.

If you know an application of this package, send a message to the author to add a link here.

File Role Description
example.php Example Example
Luhn.php Class Luhn check digit calculation class
speed_test.php Example Speed test example

Install with Composer - Download all files: luhn-algorithm.tar.gz
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

For more information send a message to info at phpclasses dot org.