Download the PHP package samyan/bankcard-validator without Composer
On this page you can find all versions of the php package samyan/bankcard-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download samyan/bankcard-validator
More information about samyan/bankcard-validator
Files in samyan/bankcard-validator
Download samyan/bankcard-validator
More information about samyan/bankcard-validator
Files in samyan/bankcard-validator
Please rate this library. Is it a good library?
Informations about the package bankcard-validator
PHP Bank Card Validator
Validates debit and credit cards numbers against regular expressions and Luhn algorithm for PHP 7.0+ Also validates the CVC and the expiration date. Project based on and inspired by inacho/php-credit-card-validator
Installation
Require the package in composer.json
Actual supported Bank Cards
Debit cards
- Visa Electron
- Maestro
- Forbrugsforeningen
- Dankort
Credit cards
- Visa
- Mastercard
- Amex
- Diners Club
- Discover
- UnionPay
- JCB (Japan Credit Bureau)
- Elo
- Hipercard
- Mir
- UATP (Universal Air Travel Plan)
- RuPay
Usage
Validate a card number knowing the type:
Output:
Validate a card number and return the type:
Output:
Validate the CVC
Output:
Validate the expiration date
Output:
All versions of bankcard-validator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
The package samyan/bankcard-validator contains the following files
Loading the files please wait ....