Skip to content
master
Switch branches/tags
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Detect Credit Card Types

Build Status Code Climate Test Coverage Latest Version on Packagist Total Downloads

Utility to determine credit card type by PAN

Installation

composer require mcred/detect-credit-card-type

Usage

require "PATH_TO/vendor/autoload.php";

$detector = new CardDetect\Detector();
$card = '4111111111111111';

echo $detector->detect($card); //Visa