PHPackages                             viloveul/validation - 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. viloveul/validation

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

viloveul/validation
===================

Base Validation for wrapping vlucas/valitron

v1.0.1(6y ago)1138MITPHPPHP ~7.0

Since Jan 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/viloveul/validation)[ Packagist](https://packagist.org/packages/viloveul/validation)[ Docs](http://www.viloveul.com)[ RSS](/packages/viloveul-validation/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Installation
============

[](#installation)

make sure your php version &gt; 7.0

```
composer require viloveul/validation
```

HOW
---

[](#how)

```
require __DIR__ . '/vendor/autoload.php';

class UserValidation extends Viloveul\Validation\Validator
{
    public function rules(): array {
        return [
            'insert' => [
                'username' => [
                    'required',
                    ['lengthMin', 5],
                    ['lengthMax', 250],
                    ['notIn', ['admin']],
                    'slug'
                ],
                'email' => [
                    'required',
                    'email',
                    ['lengthMax', 250],
                ],
                'password' => [
                    'required',
                    ['lengthMin', 6],
                    ['equals', 'passconf'],
                ],
                'passconf' => [
                    'required',
                ],
            ],
            'login' => [
                'username' => [
                    'required',
                ],
                'password' => [
                    'required',
                ],
            ],
        ];
    }
}

$validation = new UserValidation($_POST);
if ($validation->validate('login') === false) {
    var_dump($validation->errors());
}
```

###  Health Score

27

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Total

3

Last Release

2482d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/609a03f1a38d80aa5cf333dd556cb748371dbcbc880f3c580ecea72ff0fb228b?d=identicon)[zafex](/maintainers/zafex)

---

Top Contributors

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

---

Tags

validationlibrarycomponentzafexviloveulfajrulaz

### Embed Badge

![Health badge](/badges/viloveul-validation/health.svg)

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

###  Alternatives

[eftec/validationone

It's a php library for fetch and validate fields

113.8k](/packages/eftec-validationone)

PHPackages © 2026

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