php-credit-card-validator
php-credit-card-validator copied to clipboard
Validates popular debit and credit cards numbers against regular expressions and Luhn algorithm. Also validates the CVC and the expiration date.
- Add methods PHPDocs - Add ext-ctype package in composer.json
MIR credit card has been recognized as "mastercard", but it should has a different validation, something like below: ``` protected static $mirCardPattern = [ 'mir' => [ 'type' => 'mir',...
Since PHP 7.4 curly braces to get individual characters inside a string has been deprecated, so changed the syntaxes into square brackets.
New Fork
https://github.com/freelancehunt/php-credit-card-validator
Array and string offset access syntax with curly braces is deprecated {"id":1,"exception":"[object] (ErrorException(code: 0): Array and string offset access syntax with curly braces is deprecated at vendor/inacho/php-credit-card-validator/src/CreditCard.php:209)
fixes this error with PHP 7.4: Array and string offset access syntax with curly braces is deprecated {"exception":"[object] (ErrorException(code: 0): Array and string offset access syntax with curly braces is...
Added credit card type MIR. INN range: 2200–2204. Length: 16. Wiki: https://en.wikipedia.org/wiki/Mir_(payment_system)
Can I fork and maintain this project ? Are you planning for any updates here ?