Skip to content

Altruja/creditcard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CreditCard

The credit card library allows plausability checking credit cards before submitting them to a payment processor. The best practices at time of writing from writing as determined by stack overflow are used, and the class is designed to be as hassle-free as possible so it can be used in a wide variety of environments.

Usage:

// Initialize
$c = new Altruja\CreditCard("4200000000000000");

// Detect type
echo $c->type(); // "visa"

// Verify checksum
echo $c->valid(); // true

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages