cv65kr/verhoeff

PHP implementation of the Verhoeff algorithm.

Installs: 882

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/cv65kr/verhoeff

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

This package is auto-updated.

Last update: 2025-09-29 01:59:40 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());