comphp/validation
Composer 安装命令:
composer require comphp/validation
包简介
Standalone validation rules, results, and input validation support for PHP applications.
README 文档
README
CommonPHP Validation provides standalone validation rules, results, and input validation support for PHP and CommonPHP applications. It validates structured data without requiring HTTP, runtime, database, or UI dependencies.
The package is intended to remain small, reusable, and independent so it can be used by actions, forms, config, security, APIs, or standalone PHP code.
Requirements
- PHP
^8.5
Installation
Once this package is available through your Composer repositories, install it with:
composer require comphp/validation
Usage
<?php // TODO: Write usage
Package Notes
This package should stay standalone and usable outside the full CommonPHP runtime. It should provide validation rules, validation results, and reusable input/object validation behavior.
Error Handling
Validation failures should normally return validation result objects. Invalid rule definitions or internal validation errors should throw CommonPHP validation exceptions.
Documentation
License
MIT. See LICENSE.md.
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-17