PHPackages                             bbear/mvalidate - 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. bbear/mvalidate

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

bbear/mvalidate
===============

mvalidate

v0.1.11(7y ago)041BSD-3-ClausePHPPHP &gt;=7

Since May 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/hululidexiong/mValidate)[ Packagist](https://packagist.org/packages/bbear/mvalidate)[ RSS](/packages/bbear-mvalidate/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (10)Used By (0)

mValidate
=========

[](#mvalidate)

Example:

```
class BaseCtl extends \MValid\Model{}

//这里的info ，用load的第二个参数控制 ， 默认是 BaseCtl(类名)
$_POST['info']['email'] = '105@qq.com';
require( __DIR__ . '/EmailEntity.php');
$a = new BaseCtl();
$validate = $a->loadEntity( Email::class )->load( \MValid\Base\Bear::post() , 'info')->validate();
var_dump( $validate );
if(!$validate){
    var_dump($a->getErrors());
}
var_dump($a->getAttributes());

```

Entity:

```
class Email {

    //  AUTO_INCREMENT 默认主键（ primary key ）
    public $id = [
        'Type'=>'int',
        'Length'=>11,
        'AUTO_INCREMENT' => true
    ];

    public $email = [
        'Type'=>'varchar',
        'Length'=>255,
        'Default'=>'',
        'Comment'=> 'email',
        'ValidateMode' => ['email']
    ];
}

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~20 days

Recently: every ~33 days

Total

9

Last Release

2810d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14219565?v=4)[hululidexiong](/maintainers/hululidexiong)[@hululidexiong](https://github.com/hululidexiong)

---

Top Contributors

[![hululidexiong](https://avatars.githubusercontent.com/u/14219565?v=4)](https://github.com/hululidexiong "hululidexiong (16 commits)")

### Embed Badge

![Health badge](/badges/bbear-mvalidate/health.svg)

```
[![Health](https://phpackages.com/badges/bbear-mvalidate/health.svg)](https://phpackages.com/packages/bbear-mvalidate)
```

###  Alternatives

[chaoswey/taiwan-id-validator

台灣身分證、統一編號驗證

319.9k](/packages/chaoswey-taiwan-id-validator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
