Utility to determine credit card type by PAN
composer require mcred/detect-credit-card-type
require "PATH_TO/vendor/autoload.php";
$detector = new CardDetect\Detector();
$card = '4111111111111111';
echo $detector->detect($card); //Visa
Utility to determine credit card type by PAN
Utility to determine credit card type by PAN
composer require mcred/detect-credit-card-type
require "PATH_TO/vendor/autoload.php";
$detector = new CardDetect\Detector();
$card = '4111111111111111';
echo $detector->detect($card); //Visa
Utility to determine credit card type by PAN