Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jun 25, 2020
1 parent 802d124 commit 3749f60
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
26 changes: 26 additions & 0 deletions README.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# PHP Validate

[![License](https://img.shields.io/packagist/l/inhere/php-validate.svg?style=flat-square)](LICENSE)
[![Php Version](https://img.shields.io/badge/php-%3E=7.1-brightgreen.svg?maxAge=2592000)](https://packagist.org/packages/inhere/php-validate)
[![Latest Stable Version](http://img.shields.io/packagist/v/inhere/php-validate.svg)](https://packagist.org/packages/inhere/php-validate)
[![Build Status](https://travis-ci.org/inhere/php-validate.svg?branch=master)](https://travis-ci.org/inhere/php-validate)
[![Coverage Status](https://coveralls.io/repos/github/inhere/php-validate/badge.svg?branch=master)](https://coveralls.io/github/inhere/php-validate?branch=master)
[![Github Actions Status](https://github.com/inhere/php-validate/workflows/Unit-tests/badge.svg)](https://github.com/inhere/php-validate/actions)

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](#built-in-filters)
- Support pre-processing and post-processing of verification [independent verification processing](#on-in-Validation)
- 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](#built-in-validators)
- Rule setting reference `yii`, `laravel`, `Respect/Validation`
- Independent filter `Inhere\Validate\Filter\Filtration`, can be used for data filtering alone

## License

[MIT](LICENSE)
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[![Latest Stable Version](http://img.shields.io/packagist/v/inhere/php-validate.svg)](https://packagist.org/packages/inhere/php-validate)
[![Build Status](https://travis-ci.org/inhere/php-validate.svg?branch=master)](https://travis-ci.org/inhere/php-validate)
[![Coverage Status](https://coveralls.io/repos/github/inhere/php-validate/badge.svg?branch=master)](https://coveralls.io/github/inhere/php-validate?branch=master)
[![Github Actions Status](https://github.com/inhere/php-validate/workflows/Unit-tests/badge.svg)](https://github.com/inhere/php-validate/actions)

一个简洁小巧且功能完善的php验证、过滤库。

Expand Down Expand Up @@ -971,7 +972,7 @@ phpunit

## License

MIT
[MIT](LICENSE)

## 我的其他项目

Expand Down

0 comments on commit 3749f60

Please sign in to comment.