marko/validation

Validation component for Marko Framework

Maintainers

Package info

github.com/marko-php/marko-validation

Type:marko-module

pkg:composer/marko/validation

Statistics

Installs: 7

Dependents: 2

Suggesters: 0

Stars: 0

0.0.1 2026-03-25 17:53 UTC

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