insolita/yii2-validatorpack

...

Installs: 1 188

Dependents: 2

Suggesters: 0

Security: 0

Stars: 1

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: 2024-11-29 04:20:01 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"