| Package Data | |
|---|---|
| Maintainer Username: | rap2hpoutre |
| Maintainer Contact: | raphaelht@gmail.com (rap2hpoutre) |
| Package Create Date: | 2016-06-03 |
| Package Last Update: | 2020-10-27 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-26 03:04:02 |
| Package Statistics | |
|---|---|
| Total Downloads: | 127,927 |
| Monthly Downloads: | 189 |
| Daily Downloads: | 1 |
| Total Stars: | 21 |
| Total Watchers: | 4 |
| Total Forks: | 13 |
| Total Open Issues: | 1 |
Adds some minimal validation rules for credit card.
Install via composer
composer require rap2hpoutre/laravel-credit-card-validator
Add Service Provider to config/app.php in providers section
Rap2hpoutre\LaravelCreditCardValidator\ServiceProvider::class,
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',
]);