Skip to content

marko-php/marko-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marko/validation

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

About

[READ-ONLY] Validation component for Marko Framework. Issues and PRs at https://github.com/marko-php/marko

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages