Download the PHP package komakino/modulus11 without Composer
On this page you can find all versions of the php package komakino/modulus11. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
All versions of modulus11 with dependencies
Informations about the package modulus11
Modulus11 algorithm implementation for PHP. The Modulus11 algorithm is used in some bank account numbers and national identity numbers.
To add this package as a dependency to your project, simply add a dependency on
komakino/modulus11 to your project's
The standard factors for Modulus11 calculations are [2,3,4,5,6,7], looped. In some cases other factors are used. If your implementation requires custom factors, simply supply them as a second argument to any method.
static bool validate(string|int $number, array $factors = null)
Validates a number.
static int calculate(string|int $partial_number, array $factors = null)
Calculates the check digit of a number.
static string appendCheckDigit(string|int $partial_number, array $factors = null)
Calculates the check digit and returns number with check digit appended.