|
| 1 | +# PHP Validate |
| 2 | + |
| 3 | +[](LICENSE) |
| 4 | +[](https://packagist.org/packages/inhere/php-validate) |
| 5 | +[](https://packagist.org/packages/inhere/php-validate) |
| 6 | +[](https://travis-ci.org/inhere/php-validate) |
| 7 | +[](https://coveralls.io/github/inhere/php-validate?branch=master) |
| 8 | +[](https://github.com/inhere/php-validate/actions) |
| 9 | + |
| 10 | +Lightweight and feature-rich PHP validation and filtering library. |
| 11 | + |
| 12 | +- Simple and convenient, support to add custom validator |
| 13 | +- Support pre-verification check, customize how to judge non-empty |
| 14 | +- Support grouping rules by scene. Or partial verification |
| 15 | +- Supports the use of filters to purify and filter values before verification [built-in filter](#built-in-filters) |
| 16 | +- Support pre-processing and post-processing of verification [independent verification processing](#on-in-Validation) |
| 17 | +- Support to customize the error message, field translation, message translation of each verification, and support the default value |
| 18 | +- Supports basic array checking, checking of children (`'goods.apple'`) values of arrays, checking of children of wildcards (`'users.*.id' 'goods.*'`) |
| 19 | +- Easy access to error information and secure data after verification (only data that has been checked regularly) |
| 20 | +- More than 60 commonly used validators have been built-in [built-in validator](#built-in-validators) |
| 21 | +- Rule setting reference `yii`, `laravel`, `Respect/Validation` |
| 22 | +- Independent filter `Inhere\Validate\Filter\Filtration`, can be used for data filtering alone |
| 23 | + |
| 24 | +## License |
| 25 | + |
| 26 | +[MIT](LICENSE) |
0 commit comments