jacek-9999/credit-card-generator

Generating valid credit card numbers

1.0.4 2016-02-15 11:25 UTC

This package is not auto-updated.

Last update: 2024-12-07 20:01:04 UTC


README

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);