PHPackages                             phix/validationlib - 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. phix/validationlib

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

phix/validationlib
==================

ValidationLib is a lightweight library of reusable data validation tools

4.2.0(12y ago)333.6k↓50%3BSD-3-ClausePHP

Since Jun 8Pushed 12y ago1 watchersCompare

[ Source](https://github.com/stuartherbert/ValidationLib)[ Packagist](https://packagist.org/packages/phix/validationlib)[ Docs](https://github.com/stuartherbert/ValidationLib/)[ RSS](/packages/phix-validationlib/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (3)

ValidationLib4
==============

[](#validationlib4)

**ValidationLib4** is a lightweight collection of classes for validating data. It is inspired by Zend\_Validation, but put on a much-needed diet :)

System-Wide Installation
------------------------

[](#system-wide-installation)

ValidationLib4 should be installed using the [PEAR Installer](http://pear.php.net). This installer is the PHP community's de-facto standard for installing PHP components.

```
sudo pear channel-discover pear.phix-project.org
sudo pear install --alldeps phix/ValidationLib4

```

As A Dependency On Your Component
---------------------------------

[](#as-a-dependency-on-your-component)

If you are creating a component that relies on ValidationLib, please make sure that you add ValidationLib to your component's package.xml file:

```

      ValidationLib4
      pear.phix-project.org
      4.0.0
      4.999.9999

```

Usage
-----

[](#usage)

The best documentation for ValidationLib4 are the unit tests, which are shipped in the package. You will find them installed into your PEAR repository, which on Linux systems is normally /usr/share/php/test.

Development Environment
-----------------------

[](#development-environment)

If you want to patch or enhance this component, you will need to create a suitable development environment. The easiest way to do that is to install phix4componentdev:

```
# phix4componentdev
sudo apt-get install php5-xdebug
sudo apt-get install php5-imagick
sudo pear channel-discover pear.phix-project.org
sudo pear -D auto_discover=1 install -Ba phix/phix4componentdev

```

You can then clone the git repository:

```
# ValidationLib4
git clone git://github.com/stuartherbert/ValidationLib.git

```

Then, install a local copy of this component's dependencies to complete the development environment:

```
# build vendor/ folder
phing build-vendor

```

To make life easier for you, common tasks (such as running unit tests, generating code review analytics, and creating the PEAR package) have been automated using [phing](http://phing.info). You'll find the automated steps inside the build.xml file that ships with the component.

Run the command 'phing' in the component's top-level folder to see the full list of available automated tasks.

License
-------

[](#license)

See LICENSE.txt for full license details.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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 ~99 days

Total

4

Last Release

4428d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2dc3934d5c3ce55e18dca95d52b564fb2a34986770af3c532dba6c248ef58f3a?d=identicon)[stuartherbert](/maintainers/stuartherbert)

---

Top Contributors

[![stuartherbert](https://avatars.githubusercontent.com/u/7926?v=4)](https://github.com/stuartherbert "stuartherbert (60 commits)")

---

Tags

exceptionserror handling

### Embed Badge

![Health badge](/badges/phix-validationlib/health.svg)

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

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)[yiisoft/friendly-exception

An interface for friendlier exception

491.8M44](/packages/yiisoft-friendly-exception)

PHPackages © 2026

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