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
Requires
- php: ^7.1.3
Requires (Dev)
- phpunit/phpunit: ^6.5
- sylius-labs/coding-standard: ^1.0
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());