PHPackages                             alexkratky/validatorx - 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. alexkratky/validatorx

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

alexkratky/validatorx
=====================

Class to validate the user inputs.

v1.0.0(6y ago)011MITPHPPHP &gt;=7.0

Since Sep 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/AlexKratky/ValidatorX)[ Packagist](https://packagist.org/packages/alexkratky/validatorx)[ Docs](https://panx.eu/)[ RSS](/packages/alexkratky-validatorx/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (5)Used By (0)

ValidatorX
==========

[](#validatorx)

Class to validate the user inputs.

### Installation

[](#installation)

`composer require alexkratky/validatorx`

### Usage

[](#usage)

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

use AlexKratky\Validator;
use AlexKratky\IValidator;

Validator::addRule("TestRule", new class implements IValidator {
    public static function validate($input): bool {return ($input === "test");}
});

Validator::customValidate("Alex", "TestRule"); // false
Validator::customValidate("test", "TestRule"); // true
Validator::validate("test", Validator::RULE_CUSTOM, "TestRule"); // true
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

3

Last Release

2190d ago

Major Versions

v0.2.0 → v1.0.02020-05-14

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

phpvalidatordatavalidates

### Embed Badge

![Health badge](/badges/alexkratky-validatorx/health.svg)

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

###  Alternatives

[form-manager/form-manager

PHP-HTML form manager

16041.0k7](/packages/form-manager-form-manager)[nilportugues/validator

An efficient data validator for PHP

131.5k](/packages/nilportugues-validator)

PHPackages © 2026

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