PHP code example of batmage / credit-card-validator
1. Go to this page and download the library: Download batmage/credit-card-validator 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/ */
batmage / credit-card-validator example snippets
$validator = new \Batmage\CreditCardValidator\Validator;
$result = $validator->validate('4111 1111 1111 1111'); // bool(true)