文件名称:信用卡:信用卡验证
文件大小:43KB
文件格式:ZIP
更新时间:2024-02-24 06:39:50
php laravel validation validator credit-card
Laravel验证程序规则-信用卡 此规则将验证给定的信用卡号,有效期或信用卡有效。 安装 composer require laravel-validation-rules/credit-card 用法 作为FormRequest <?php namespace App \ Http \ Requests ; use LVR \ CreditCard \ CardCvc ; use LVR \ CreditCard \ CardNumber ; use LVR \ CreditCard \ CardExpirationYear ; use LVR \ CreditCard \ CardExpirationMonth ; use Illuminate \ Foundation \ Http \ FormRequest ; class CreditCardRequest extends FormRequest { /** * Get the validation rules that apply to the request. * * @retur
【文件预览】:
credit-card-master
----composer.json(1KB)
----.travis.yml(812B)
----.scrutinizer.yml(749B)
----tests()
--------Unit()
--------TestCase.php(97B)
----.php_cs(3KB)
----LICENSE(11KB)
----src()
--------Factory.php(2KB)
--------CardExpirationMonth.php(988B)
--------CardCvc.php(1022B)
--------CardExpirationYear.php(990B)
--------Exceptions()
--------Cards()
--------CardExpirationDate.php(2KB)
--------CardNumber.php(1KB)
--------ExpirationDateValidator.php(2KB)
--------Contracts()
----.gitignore(101B)
----phpunit.xml.dist(860B)
----.styleci.yml(16B)
----README.md(4KB)
----.pre-commit-config.yaml(452B)