Download the PHP package freelancehunt/php-credit-card-validator without Composer
On this page you can find all versions of the php package freelancehunt/php-credit-card-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download freelancehunt/php-credit-card-validator
More information about freelancehunt/php-credit-card-validator
Files in freelancehunt/php-credit-card-validator
Download freelancehunt/php-credit-card-validator
More information about freelancehunt/php-credit-card-validator
Files in freelancehunt/php-credit-card-validator
Vendor freelancehunt
Package php-credit-card-validator
Short Description Validates popular debit and credit cards' numbers against regular expressions and Luhn algorithm. Also validates the CVC and the expiration date.
License MIT
Package php-credit-card-validator
Short Description Validates popular debit and credit cards' numbers against regular expressions and Luhn algorithm. Also validates the CVC and the expiration date.
License MIT
Please rate this library. Is it a good library?
Informations about the package php-credit-card-validator
PHP Credit Card Validator
Validates popular debit and credit cards numbers against regular expressions and Luhn algorithm. Also validates the CVC and the expiration date.
Since original project seems to be abandoned, we plan to maintain this fork.
Requirements
PHP 7.1+. We don't plan to support EOL PHP versions.
Require the package in composer.json
Usage
Validate a card number knowing the type:
Output:
Validate a card number against several types:
Output:
Validate a card number and return the type:
Output:
Validate the CVC
Output:
Validate the expiration date
Output:
Tests
Execute the following command to run the unit tests:
vendor/bin/phpunit
All versions of php-credit-card-validator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
lib-pcre Version >=8.38
ext-ctype Version *
lib-pcre Version >=8.38
ext-ctype Version *
The package freelancehunt/php-credit-card-validator contains the following files
Loading the files please wait ....