stgit90/detect-valid-card

Utility to valid and determine bank card type by stgit90

Maintainers

Package info

github.com/tigran90/detect-valid-cards

pkg:composer/stgit90/detect-valid-card

Statistics

Installs: 23

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.1.2 2024-05-13 14:08 UTC

This package is not auto-updated.

Last update: 2026-03-22 03:03:33 UTC


README

Utility to valid and determine bank card type by stgit90

Installation

composer require stgit90/detect-valid-card

Usage

require "/vendor/autoload.php";
use CardValidDetect\ValidDetect;

$detector = new ValidDetect();
$card = '4916847576752405';
if($detector->detect('4916847576752405')->isValid()){
    echo $detector->getType() //Visa
}