marko / validation
Validation component for Marko Framework
0.0.1
2026-03-25 17:53 UTC
Requires
- php: ^8.5
This package is auto-updated.
Last update: 2026-03-25 21:07:41 UTC
README
Input validation with built-in rules, string-based rule parsing, and custom rule support — validate data before it reaches your domain.
Installation
composer require marko/validation
Quick Example
use Marko\Validation\Contracts\ValidatorInterface; $errors = $this->validator->validate($input, [ 'name' => 'required|string|max:100', 'email' => 'required|email', 'age' => 'nullable|integer|min:18', ]); if ($errors->isNotEmpty()) { // handle errors }
Documentation
Full usage, API reference, and examples: marko/validation