lebedyncrs/yii2-errorpicker

Provide global object which can contain all validation errors. It's userfull in REST API

Maintainers

Package info

github.com/lebedyncrs/yii2-errorpicker

Type:yii2-extension

pkg:composer/lebedyncrs/yii2-errorpicker

Statistics

Installs: 25

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2016-07-07 13:26 UTC

This package is not auto-updated.

Last update: 2026-03-23 20:06:13 UTC


README

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist lebedyncrs/yii2-errorpicker

or add

"lebedyncrs/yii2-errorpicker": "*"

to the require section of your composer.json.

Usage

This extension provides global object for validation errros and is userfull in rest api when you should pick all error from each models and return response as json.

'components' => [
    'errorPicker' => [
        'class' => 'lebedyncrs\errorpicker\ErrorValidationPicker'
    ],
    ....
]

When you develop rest api global context for errors validation is very useful. This component provide that.