Download the PHP package byrokrat/checkdigit without Composer
On this page you can find all versions of the php package byrokrat/checkdigit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package checkdigit
ABANDONED! This package is discontinued and will not be updated.
Checkdigit
Helper classes to calculate and validate ckecksums.
Installation
Checkdigit requires the bcmath php extension.
API
The Calculator interface defines two methods:
isValid(string $number): boolchecks if number contains a valid check digit.calculateCheckDigit(string $number): stringcalculates the check digit for number.
Implementations include:
Luhnfor modulo 10 check digits (Luhn is simply a shorthand for Modulo10).Modulo10Gtinfor modulo 10 check digits variant used in GTIN barcodes.Modulo11for modulo 11 check digits.Modulo97for modulo 97 check digits.
Usage
All versions of checkdigit with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
ext-bcmath Version *
ext-bcmath Version *
The package byrokrat/checkdigit contains the following files
Loading the files please wait ...