chendujin/credit-card-verify
Laravel Credit Card Validator
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',
]);
Related Packages
laravel-validation-rules/credit-card
Validate credit card number, expiration date, cvc
2,598,871
245
Version History
| Version | Released | Laravel | License |
|---|---|---|---|
| v1.1.0 | ~5| | MIT | |
| v1.0.0 | ~5| | MIT |