cv65kr/verhoeff

PHP implementation of the Verhoeff algorithm.

Maintainers

Package info

github.com/cv65kr/verhoeff

pkg:composer/cv65kr/verhoeff

Statistics

Installs: 882

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

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

This package is auto-updated.

Last update: 2026-03-01 00:12:05 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());