PHPackages                             hublint/valfactory - 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. hublint/valfactory

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

hublint/valfactory
==================

Simple validation library

0.0.1(7y ago)254MITPHPPHP &gt;=5.4.0

Since Dec 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/hublint/valfactory)[ Packagist](https://packagist.org/packages/hublint/valfactory)[ Docs](http://github.com/hublint/valfactory)[ RSS](/packages/hublint-valfactory/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

hublint/valfactory
==================

[](#hublintvalfactory)

Simple PHP vaidation library.

- Lightweight.
- No dependencies.
- Suppports multiple validations on a single entity with less code.
- Errors are stored in a single array which can be parsed as JSON or other suitable format for different use cases.

It's simple, and lets you validate inputs/data in three steps.

1. Collect Data.
2. Run Validations.
3. Check for Errors.

ValFactory does NOT care how you collect your data, it only makes sure the data are what you're expecting, before you decide what to do with them.

ValFactory does NOT encrypt, authorize, or authenticate, it's a factory that only validates.

Happy Validating!

Example
-------

[](#example)

```
