chendujin / credit-card-verify by chendujin
forked from rap2hpoutre/laravel-credit-card-validator

credit card validator
23
0
0
Package Data
Maintainer Username: chendujin
Maintainer Contact: thomas.chen.jobs@gmail.com (chendujin)
Package Create Date: 2023-06-28
Package Last Update: 2023-06-28
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-11-15 03:00:10
Package Statistics
Total Downloads: 23
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 0
Total Watchers: 0
Total Forks: 0
Total Open Issues: 0

Laravel Credit Card Validator

Packagist Software License Build Status Quality Score

Adds some minimal validation rules for credit card.

Install

Install via composer

composer require chendujin/credit-card-verify

Lumen

Register Service Provider bootstrap/app.php

$app->register(Chendujin\CreditCardVerify\ServiceProvider::class);

Usage

Add this to your validation rules:

// Add this in your controller method
$this->validate($request, [
    'credit-card-number' => 'required|ccn',
    'credit-card-date' => 'required|ccd',
    'credit-validation-code' => 'required|cvc',
]);