18 Star 121 Fork 25

inhere/php-validate

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
README.en.md 1.96 KB
一键复制 编辑 原始数据 按行查看 历史

PHP Validate

License Php Version Latest Stable Version Build Status Coverage Status Github Actions Status

Lightweight and feature-rich PHP validation and filtering library.

  • Simple and convenient, support to add custom validator
  • Support pre-verification check, customize how to judge non-empty
  • Support grouping rules by scene. Or partial verification
  • Supports the use of filters to purify and filter values before verification built-in filter
  • Support pre-processing and post-processing of verification independent verification processing
  • Support to customize the error message, field translation, message translation of each verification, and support the default value
  • Supports basic array checking, checking of children ('goods.apple') values ​​of arrays, checking of children of wildcards ('users.*.id' 'goods.*')
  • Easy access to error information and secure data after verification (only data that has been checked regularly)
  • More than 60 commonly used validators have been built-in built-in validator
  • Rule setting reference yii, laravel, Respect/Validation
  • Independent filter Inhere\Validate\Filter\Filtration, can be used for data filtering alone

License

MIT

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/inhere/php-validate.git
git@gitee.com:inhere/php-validate.git
inhere
php-validate
php-validate
master

搜索帮助