PHP code example of amiriskander / valid-credit-card
1. Go to this page and download the library: Download amiriskander/valid-credit-card library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
amiriskander / valid-credit-card example snippets
use AmirIskander\CreditCard\CreditCardValidator;
$cardValidator = new CreditCardValidator();
$isValid = $cardValidator->validateCreditCard('4539392426082460', '123');
var_dump($isValid);