marko/validation
最新稳定版本:0.6.0
Composer 安装命令:
composer require marko/validation
包简介
Validation component for Marko Framework
README 文档
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
统计信息
- 总下载量: 560
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-24