bryglen / yii2-validators
credit card validation yii 2
Installs: 24 219
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 3
Forks: 9
Open Issues: 2
Type:yii2-extension
This package is not auto-updated.
Last update: 2024-12-21 18:13:45 UTC
README
credit card validation yii 2
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist bryglen/yii2-validators "1.0.1"
or add
"bryglen/yii2-validator": "1.0.1"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your models :
public function rules() { return [ ['cc', 'bryglen\validators\CreditCardValidator'] ]; }