Download the PHP package komakino/luhn without Composer
On this page you can find all versions of the php package komakino/luhn. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
All versions of luhn with dependencies
Informations about the package luhn
Luhn algorithm implementation for PHP. The Luhn algorithm is used in credit card numbers and national identity numbers.
To add this package as a dependency to your project, simply add a dependency on
komakino/luhn to your project's
static bool validate(string|int $number)
Validates a number.
static int calculate(string|int $partial_number)
Calculates the check digit of a number.
static string appendCheckDigit(string|int $partial_number)
Calculates the check digit and returns number with check digit appended.