Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcred/detect-credit-card-type
Utility to determine credit card type by PAN
https://github.com/mcred/detect-credit-card-type
code-climate composer php7 test-driven-development travis-ci
Last synced: about 2 months ago
JSON representation
Utility to determine credit card type by PAN
- Host: GitHub
- URL: https://github.com/mcred/detect-credit-card-type
- Owner: mcred
- Created: 2017-07-01T01:49:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-20T18:20:36.000Z (almost 7 years ago)
- Last Synced: 2024-04-29T11:05:03.343Z (9 months ago)
- Topics: code-climate, composer, php7, test-driven-development, travis-ci
- Language: PHP
- Homepage:
- Size: 24.4 KB
- Stars: 14
- Watchers: 4
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Detect Credit Card Types
[![Build Status](https://travis-ci.org/mcred/detect-credit-card-type.svg?branch=master)](https://travis-ci.org/mcred/detect-credit-card-type)
[![Code Climate](https://codeclimate.com/github/mcred/detect-credit-card-type/badges/gpa.svg)](https://codeclimate.com/github/mcred/detect-credit-card-type)
[![Test Coverage](https://codeclimate.com/github/mcred/detect-credit-card-type/badges/coverage.svg)](https://codeclimate.com/github/mcred/detect-credit-card-type/coverage)
[![Latest Version on Packagist][ico-version]][link-packagist]
[![Total Downloads][ico-downloads]][link-downloads][ico-version]: https://img.shields.io/packagist/v/mcred/detect-credit-card-type.svg?style=flat
[ico-downloads]: https://img.shields.io/packagist/dt/mcred/detect-credit-card-type.svg?style=flat[link-packagist]: https://packagist.org/packages/mcred/detect-credit-card-type
[link-downloads]: https://packagist.org/packages/mcred/detect-credit-card-typeUtility 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
```