Skip to content

jacek-9999/credit-card-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

creditCardGenerator

This class uses Luhn algoritm for generating valid credit cards number.

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

You can choose bin and this class will find correct numbers and return it in the array.

https://en.wikipedia.org/wiki/Bank_card_number

Package is available by composer:

composer require jacek-9999/credit-card-generator

Usage example's:

https://gist.github.com/jacek-9999/64c319344ab8d9e50ea2

require('creditCardGenerator.php');

$genCC = new creditCardGenerator();

$genCC->setBin(123);

$output = $genCC->getCC();

print_r($output);

About

Simple php class for creating credit card numbers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages