PHPackages                             philiplb/valdi - 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. philiplb/valdi

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

philiplb/valdi
==============

Super simple, yet complete, data validation.

1.0.2(5y ago)510.7k1[3 issues](https://github.com/philiplb/Valdi/issues)1MITPHPPHP &gt;=7.0CI failing

Since Jul 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/philiplb/Valdi)[ Packagist](https://packagist.org/packages/philiplb/valdi)[ RSS](/packages/philiplb-valdi/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (7)Dependencies (1)Versions (8)Used By (1)

Valdi
-----

[](#valdi)

Super simple, yet complete data validation.

Reasons to use Valdi:

- Easy to use
- Feature complete
- Lightweight, without dependencies
- Well documented
- Well tested
- Extensible

[![Valdi](valdi/valdi.png)](valdi/valdi.png)

(Big thanks to [Jamie Thormann](https://www.linkedin.com/in/jamie-thormann-937916109/) for this awesome mascot!)

Documentation
-------------

[](#documentation)

Find out more and get started with the documentation. This documentation is available for each version:

- [1.0.0](https://philiplb.github.io/Valdi/docs/html/1.0.0)
- [0.12.0](https://philiplb.github.io/Valdi/docs/html/0.12.0)
- [0.11.0](https://philiplb.github.io/Valdi/docs/html/0.11.0)
- [0.10.0](https://philiplb.github.io/Valdi/docs/html/0.10.0)
- [0.9.0](https://philiplb.github.io/Valdi/docs/html/0.9.0)

Package
-------

[](#package)

Valdi uses [Semantic Versioning](https://semver.org/).

[![Total Downloads](https://camo.githubusercontent.com/05b7f0a693e04d100dc4bf644ec3fa902de9044dbd703a94a7b3c734675e166d/68747470733a2f2f706f7365722e707567782e6f72672f7068696c69706c622f76616c64692f646f776e6c6f6164732e737667)](https://packagist.org/packages/philiplb/valdi)[![Latest Stable Version](https://camo.githubusercontent.com/c4777134918480567b9361fe61e895c89a1b9aa49943bc4d22938bc954b042d8/68747470733a2f2f706f7365722e707567782e6f72672f7068696c69706c622f76616c64692f762f737461626c652e737667)](https://packagist.org/packages/philiplb/valdi)[![Latest Unstable Version](https://camo.githubusercontent.com/f1e2048301e27789da6a6eff4670a6c7aeed8c342ab20846e28555e699fec296/68747470733a2f2f706f7365722e707567782e6f72672f7068696c69706c622f76616c64692f762f756e737461626c652e737667)](https://packagist.org/packages/philiplb/valdi) [![License](https://camo.githubusercontent.com/aabbf4e8e8817d2095029381c3a2d056004d94d65ca441f2d2d911149c2608de/68747470733a2f2f706f7365722e707567782e6f72672f7068696c69706c622f76616c64692f6c6963656e73652e737667)](https://packagist.org/packages/philiplb/valdi)

### Stable

[](#stable)

```
"require": {
    "philiplb/valdi": "^1.0"
}
```

### Bleeding Edge

[](#bleeding-edge)

```
"require": {
    "philiplb/valdi": "1.1.x-dev"
}
```

Build Status
------------

[](#build-status)

[![Build Status](https://camo.githubusercontent.com/1f0a4dbdb2c7982a2e4967ef0ddc8e7f2792d11cad71178e2b148d7dd3299c05/68747470733a2f2f7472617669732d63692e6f72672f7068696c69706c622f56616c64692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/philiplb/Valdi)[![Code Coverage](https://camo.githubusercontent.com/2b988542c443e003fa384e0a75498b403d0809a5b63326f47d034338bfd20d1a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7068696c69706c622f56616c64692f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/philiplb/Valdi/?branch=master)

Code Quality
------------

[](#code-quality)

[![SensioLabsInsight](https://camo.githubusercontent.com/405ccd43dd693d43adad395538b2b26e5f94eef7ec3d25182d16ed9d2f75d583/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f65366632393165302d316265362d343839372d613633342d3864653837616334313733342f6d696e692e706e67)](https://insight.sensiolabs.com/projects/e6f291e0-1be6-4897-a634-8de87ac41734)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/856fbc001494e383f9743e4b3fcb56f6e265ac6a995036c6972b7ce1baa358fe/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7068696c69706c622f56616c64692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/philiplb/Valdi/?branch=master)

How to Generate the Documentation
---------------------------------

[](#how-to-generate-the-documentation)

Upfront, install Sphinx and the PHP extension:

```
pip install Sphinx
pip install tk.phpautodoc
```

Clone `https://github.com/avalanche123/doxphp` somewhere once and then execute:

```
export DOXPHPPATH="/bin"
php generateAPIDocs.php
cd docs
make clean && make html
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance8

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 99.5% 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 ~282 days

Recently: every ~147 days

Total

7

Last Release

1930d ago

Major Versions

0.12.0 → 1.0.02020-01-14

PHP version history (3 changes)0.9.0PHP &gt;=5.3.3

0.10.0PHP &gt;=5.5

1.0.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/01057139b178118459e3f2287f208d5a0730f1d9f2c8b9032a210936607abaff?d=identicon)[philiplb](/maintainers/philiplb)

---

Top Contributors

[![philiplb](https://avatars.githubusercontent.com/u/1672238?v=4)](https://github.com/philiplb "philiplb (216 commits)")[![j-koenig](https://avatars.githubusercontent.com/u/4379068?v=4)](https://github.com/j-koenig "j-koenig (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/philiplb-valdi/health.svg)

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

###  Alternatives

[chaoswey/taiwan-id-validator

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

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

PHPackages © 2026

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