selay/laravel-credit-card-validator
Laravel Credit Card Validator
Adds some minimal validation rules for credit card.
This fork from original author rap2hpoutre/laravel-credit-card-validator is to support php 7.4 as there are issues
Install
Install via composer
composer require selay/laravel-credit-card-validator
Add Service Provider to config/app.php in providers section
Rap2hpoutre\LaravelCreditCardValidator\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,543,279
246
smart-twists/iranian-information-validator
Additional Iranian Information Validator Functions for the Laravel Framework
443
5
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v2.0 | ^7.0 | 5.* | | MIT | |
| v1.0.1 | ^7.0 | 5.* | | MIT | |
| v1.0.0 | ^7.0 | 5.* | | MIT | |
| v0.0.6 | >=5.5.0 | 5.* | MIT | |
| v0.0.5 | >=5.5.0 | 5.* | MIT | |
| v0.0.4 | >=5.5.0 | 5.* | MIT | |
| v0.0.3 | >=5.5.0 | 5.* | MIT | |
| v0.0.2 | >=5.5.0 | 5.* | MIT | |
| v0.0.1 | >=5.5.0 | 5.* | MIT |