PHPackages                             bang/validate - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. bang/validate

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

bang/validate
=============

借鉴thinkphp5.\*的验证规，脱离thinkphp的局限

v1.0.0(5y ago)4740↓100%1PHPPHP &gt;=7.1.0

Since Aug 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/TTC1002335644/validate)[ Packagist](https://packagist.org/packages/bang/validate)[ RSS](/packages/bang-validate/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Validate 验证器
============

[](#validate-验证器)

借鉴thinkphp5.\*的验证规则，脱离thinkphp的局限

安装
==

[](#安装)

```
composer require bang/validate

```

实例代码
====

[](#实例代码)

例子一：
----

[](#例子一)

### 1、定义一个验证器

[](#1定义一个验证器)

```
