betalabs/laravel-credit-card-validator
Laravel credit card validator
19,843
| Install | |
|---|---|
composer require betalabs/laravel-credit-card-validator |
|
| Latest Version: | v0.4.1 |
| PHP: | >=5.5.0 |
| License: | MIT |
| Last Updated: | Aug 15, 2022 |
| Links: | GitHub · Packagist |
Maintainer: diego-betalabs
Laravel Credit Card Validator
Adds some minimal validation rules for credit card.
Install
Install via composer
composer require rap2hpoutre/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 |
|---|---|---|---|---|
| v0.4.1 | >=5.5.0 | 5.*| | MIT | |
| v0.4.0 | >=5.5.0 | 5.*| | MIT | |
| v0.3.0 | >=5.5.0 | 5.*| | MIT | |
| v0.2.0 | >=5.5.0 | 5.*| | MIT | |
| v0.1.0 | >=5.5.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 |
