Download the PHP package giahojnost/credit-card-validator without Composer
On this page you can find all versions of the php package giahojnost/credit-card-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download giahojnost/credit-card-validator
More information about giahojnost/credit-card-validator
Files in giahojnost/credit-card-validator
Download giahojnost/credit-card-validator
More information about giahojnost/credit-card-validator
Files in giahojnost/credit-card-validator
Vendor giahojnost
Package 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 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 credit-card-validator
Credit Card Validator
Validates popular debit and credit cards numbers against regular expressions and Luhn algorithm. Also validates the CVC and the expiration date.
Based on inacho/php-credit-card-validator, for support PHP 8.
Installation
Require the package in composer.json
If you are using Laravel, add an alias in config/app.php
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:
Tests
Execute the following command to run the unit tests:
vendor/bin/phpunit
All versions of credit-card-validator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
lib-pcre Version >=7.3
ext-ctype Version *
lib-pcre Version >=7.3
ext-ctype Version *
The package giahojnost/credit-card-validator contains the following files
Loading the files please wait ....