2017 © Pedro Peláez
 

library yii2-eithervalidator

Yii2 validator to force one of certain attributes to be filled

image

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

The README.md

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']]

The Versions

12/02 2015

dev-master

9999999-dev

Yii2 validator to force one of certain attributes to be filled

  Sources   Download

MIT

The Requires

 

by Petra Barus