Skip to content

mcred/detect-credit-card-type

Repository files navigation

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