cv65kr/verhoeff

PHP implementation of the Verhoeff algorithm.

dev-master 2018-03-02 21:17 UTC

This package is auto-updated.

Last update: 2024-04-29 04:02:56 UTC


README

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());