Utility to determine credit card type by PAN
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build initial commit Jul 1, 2017
src rename Diners to DinersClub Oct 24, 2017
tests rename Diners to DinersClub Oct 24, 2017
.codeclimate.yml
.gitignore initial commit Jul 1, 2017
.travis.yml update travis.yml for code climate coverage Feb 13, 2018
README.md Update README.md Apr 20, 2018
build.xml
card-detect
composer.json set up ci and code coverage Jul 2, 2017
composer.lock set up ci and code coverage Jul 2, 2017
phpunit.xml initial commit Jul 1, 2017

README.md

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