PHPackages                             litto/validator - 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. litto/validator

ActiveLibrary

litto/validator
===============

Class validator for Form Submissions

v1.0(4y ago)091proprietaryPHPPHP &gt;=5.0

Since Feb 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/litto/validator)[ Packagist](https://packagist.org/packages/litto/validator)[ RSS](/packages/litto-validator/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (1)

Validator class
===============

[](#validator-class)

Validating Class for Form submissions

\##How to Install?

You can install the package using composer by typing the command

composer require litto/validator:v1.0

\##How it Works?

$rules = array( "firstName"=&gt;"LABEL1/EMPTY", "lastName"=&gt;"LABEL2/EMPTY", "email"=&gt;"LABEL3/EMAIL|EMPTY", "website"=&gt;"LABEL4/URL", "price"=&gt;"LABEL5/NUMBER|EMPTY", ); $obj = new Validator($rules); if($obj -&gt; validate()){ echo "Validation Success"; }else{ echo $obj-&gt;getMessage(); }

After Form submission, just initialise the validator class and pass the validate rules

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

1561d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0409ad96d8dabd00048f79a63785982e4ed1c05a4e6ab52f6ff12201a7c5dd8?d=identicon)[Iamlitto](/maintainers/Iamlitto)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/litto-validator/health.svg)

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

PHPackages © 2026

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