Skip to content

jleyanna/luhn-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Luhn Algorithm Validator / Credit Card Type Checker

"Implement the Luhn algorithm to validate a credit card number. Bonus points if you can identify what brand of credit card the user inputted!"

via Cassidy William's Newsletter from August 6, 2023

Install Dependencies

composer install

Test Coverage

composer test

References:

Luhn Algorithm:
https://en.wikipedia.org/wiki/Luhn_algorithm

Regex for Checking Card Type: 
https://stackoverflow.com/questions/72768/how-do-you-detect-credit-card-type-based-on-number/72801#72801

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages