library yii2-eithervalidator
Yii2 validator to force one of certain attributes to be filled
petrabarus/yii2-eithervalidator
Yii2 validator to force one of certain attributes to be filled
- Thursday, February 12, 2015
- by petrabarus
- Repository
- 2 Watchers
- 1 Stars
- 6,943 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 2 Forks
- 1 Open issues
- 1 Versions
- 5 % Grown
yii2-eithervalidator
Yii2 validator to force one of attributes to be filled., (*1)
Installation
Add the following line to the composer., (*2)
"petrabarus/yii2-eithervalidator": "*"
Usage
Add the a line similar to the following to rule of the model, (*3)
[['email'], PetraBarus\Yii2\Validators\EitherValidator::class,
'otherAttributes' => ['phone']]
dev-master
9999999-dev
Yii2 validator to force one of certain attributes to be filled
Sources
Download
MIT
The Requires
by
Petra Barus