pablo-puyat / luhn-validator

A package that will verify athe validity of a number by applying the Luhn Checksum.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Luhn Checksum Exercise

To Run the Code

After extracting the content of the zip file, change into the directory containtinf the code and execute the commands php mode-test.php 79927398713 and php mode-test 79927398710

To Run the Tests

From the same directory as the excerise code, run the command php tests/test.php

Notes

This code is viewable at https://github.com/pablo-puyat/luhn-validator.

The development branch contains the unmodified history of commits.

The main branch contains a squashed merge of the development branch.

About

A package that will verify athe validity of a number by applying the Luhn Checksum.


Languages

Language:PHP 100.0%