nex-otaku / yii2-error-summary
Yii2 Error Summary
dev-master
2025-04-02 07:46 UTC
Requires
- php: ^7.4|^8.0
This package is auto-updated.
Last update: 2025-04-02 07:56:27 UTC
README
Yii2 Error Summary
Why?
Bacause sometimes you want all validation errors of model as single line of text, and Yii2 does not provide it out of the box.
Usage
$this->log('Order validation failed: ' . ErrorSummary::of($order));
Installation
The preferred way to install is through composer.
composer require nex-otaku/yii2-error-summary
Alternatively, you can just copy-paste source file to your project. It has no dependencies and should work just fine.
License
- MIT license
- Copyright 2025 © Nex Otaku.