insolita/yii2-validatorpack

...

Installs: 1 070

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

0.0.2 2017-05-25 15:12 UTC

This package is auto-updated.

Last update: 2021-01-17 18:57:14 UTC


README

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"