Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 362 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 362 Bytes

The Verhoeff Checksum Algorithm

PHP implementation of the Verhoeff algorithm based on https://en.wikipedia.org/wiki/Verhoeff_algorithm.

Example

$test = new \Kajti\Verhoeff\Verhoeff('123c');

echo 'Validation';
var_dump($test->validate());

echo 'Correct number';
var_dump($test->getDigit());