Validator Collector
Captures validation operations with rules, results, and error lists.

What It Captures
| Field | Description |
|---|---|
value | The validated value |
rules | Validation rules applied |
result | Whether validation passed (true/false) |
errors | Validation error messages |
Data Schema
json
[
{
"value": {"email": "invalid"},
"rules": "email|required",
"result": false,
"errors": ["The email field must be a valid email address."]
},
{
"value": {"name": "John"},
"rules": "string|min:2",
"result": true,
"errors": []
}
]Summary (shown in debug entry list):
json
{
"validator": {
"total": 2,
"valid": 1,
"invalid": 1
}
}Contract
php
use AppDevPanel\Kernel\Collector\ValidatorCollector;
$collector->collect(
value: ['email' => 'invalid'],
isValid: false,
errors: ['The email field must be a valid email address.'],
rules: 'email|required',
);INFO
ValidatorCollectorAppDevPanel\Kernel\Collector\ValidatorCollectorCaptures validation operations with results. implements SummaryCollectorInterfaceAppDevPanel\Kernel\Collector\SummaryCollectorInterfaceSummary data collector responsibility is to collect summary data for a collector. Summary is used to display a list of previous requests and select one to display full info. Its data set is specific to the list and is reduced compared to full data collected in {@see CollectorInterface}.. It has no dependencies on other collectors.
How It Works
Framework adapters intercept validation calls:
- Symfony: Validator event listener
- Laravel: Validator hook after validation
- Yii 3: Validator proxy decorator
Debug Panel
- Validation list — all validations with pass/fail status
- Status badges — valid (green), invalid (red)
- Error details — expandable error messages per validation
- Rule display — validation rules shown for each operation