You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an implementation of the Luhn Algorithm for PHP 7.0 and above. The Luhn Algorithm is
7
-
used to validate things like credit cards and national identification numbers.
8
-
More information on the algorithm can be found at [Wikipedia](http://en.wikipedia.org/wiki/Luhn_algorithm).
6
+
This is a zero dependency implementation of the Luhn Algorithm for PHP 7.0 and above. The Luhn Algorithm is used to validate things like credit cards and national identification numbers. More information on the algorithm can be found at [Wikipedia](http://en.wikipedia.org/wiki/Luhn_algorithm).
9
7
10
8
## Installation
11
9
@@ -25,11 +23,9 @@ In order to instantiate a new instance of the library, use the factory:
25
23
$luhn = LuhnAlgorithmFactory::create();
26
24
```
27
25
28
-
You can find [the public interface of the library in the `LuhnAlgorithmInterface`](src/Contract/LuhnAlgorithmInterface.php).
26
+
You can find [the library facade in the `LuhnAlgorithmInterface.php` file](src/Contract/LuhnAlgorithmInterface.php).
29
27
30
-
[The `Number` class](src/Number.php) is a container class that holds the actual number and the check digit. It does no validation
31
-
nor does it calculate the check digit. To simplify the process of validating a number you can use the
32
-
named constructor `Number::fromString()` like this:
28
+
[The `Number` class](src/Number.php) is a container class that holds the actual number and the check digit. It does no validation nor does it calculate the check digit. It exists to clearly separate the number from the check digit and to define when the check digit exists or not. To simplify the process of validating a number you can use the named constructor `Number::fromString()` like this:
0 commit comments