https://github.com/arabhossain/php-cards-detector
creditcarddetector
https://github.com/arabhossain/php-cards-detector
amex card detector dinersclub jcb maestro mastercard php visa
Last synced: 4 days ago
JSON representation
creditcarddetector
- Host: GitHub
- URL: https://github.com/arabhossain/php-cards-detector
- Owner: arabhossain
- License: mit
- Created: 2019-08-21T20:01:31.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-12T11:22:30.000Z (over 6 years ago)
- Last Synced: 2025-12-14T18:54:21.798Z (6 months ago)
- Topics: amex, card, detector, dinersclub, jcb, maestro, mastercard, php, visa
- Language: PHP
- Homepage:
- Size: 1.28 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Detect Debit Credit Card Types with logo
Utility to determine credit card type
### Installation
```
composer require arabhossain/php-cards-detector
```
### Supported Cards
### Usage
```
require "vendor/autoload.php";
echo \CardDetector\Detector::detect("5555555555554444")->get_name();
echo \CardDetector\Detector::detect("5555555555554444")->get_logo();
echo \CardDetector\Detector::detect("5555555555554444")->get_logo_base64();
```
>Or you can simply use
```
use \CardDetector\Detector as CardDetector;
echo CardDetector::detect(23232313131313)->get_name();
```