php validate

Lightweight and feature-rich PHP validation and filtering library. Support scene grouping, pre-filtering, array checking, custom validators, custom messages. 轻量且功能丰富的PHP验证、过滤库。支持场景分组,前置过滤,数组检查,自定义验证器,自定义消息。

240
33
PHP

PHP Validate

License
Php Version
Latest Stable Version
Coverage Status
Github Actions Status
zh-CN readme

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