PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Insolita   Yi2 Validator Pack   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Yi2 Validator Pack
Implements file and directory validation rules
Author: By
Last change:
Date: 1 year ago
Size: 1,003 bytes
 

Contents

Class file image Download

Yii2 Validators Collection

Status Latest Stable Version Total Downloads License - PathValidator

       public function rules(){
           return [
              [['pathAttribute'],PathValidator::class,'strictDir'=>true],
              [['pathAttribute'],PathValidator::class,'strictFile'=>true,'writeable'=>true],
              [['pathAttribute'],PathValidator::class,'requiredBase'=>'@common/data','readable'=>true],
           ];
       }

Installation

run

composer require --prefer-dist "insolita/yii2-validatorpack:~0.0.2"

or add

"insolita/yii2-validatorpack": "~0.0.2"