PHP code example of sfyanbel / credit-card-validation
1. Go to this page and download the library: Download sfyanbel/credit-card-validation 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/ */
sfyanbel / credit-card-validation example snippets
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use sfyanbel\CreditCardValidation\CreditCard;
class TestController extends Controller
{
function test(){
// Test Credit Card
$testCreditCard = "43943418067844";
$ob = new CreditCard();
return $ob->getTypeCreditCard($testCreditCard);
}
}