PHPackages                             newclass/judex - 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. newclass/judex

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

newclass/judex
==============

The PHP validator.

v1.3.0(9y ago)0551MITPHPPHP &gt;=5.5.0

Since Dec 4Pushed 9y agoCompare

[ Source](https://github.com/newclass-pl/judex)[ Packagist](https://packagist.org/packages/newclass/judex)[ RSS](/packages/newclass-judex/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (7)Used By (1)

README
======

[](#readme)

[![license](https://camo.githubusercontent.com/4a018965bd8c82cecfad8d9c844dcefc678a887eab90cb8965f025467d3da080/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626166732f7669612e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/4a018965bd8c82cecfad8d9c844dcefc678a887eab90cb8965f025467d3da080/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626166732f7669612e7376673f7374796c653d666c61742d737175617265)[![PHP 5.5+](https://camo.githubusercontent.com/aa78f147c236f46697a4bd15778f6b31f453b360ebaa19b21c549b3b40721911/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d352e352b2d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/aa78f147c236f46697a4bd15778f6b31f453b360ebaa19b21c549b3b40721911/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d352e352b2d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)

What is Judex?
--------------

[](#what-is-judex)

Judex is a PHP validator.

Installation
------------

[](#installation)

The best way to install is to use the composer by command:

composer require newclass/judex

composer install

Use example
-----------

[](#use-example)

```
use Judex\Validator\EmailValidator;
use Judex\Validator\NotEmptyValidator;
use Judex\ValidatorManager;

$validator=new ValidatorManager();
$validator->addValidator(new EmailValidator());
$validator->addValidator(new NotEmptyValidator());

$result=$validator->validate('test@newclass.pl');
$valid=$result->isValid(); //return true

$result=$validator->validate('test.newclass.pl');
$valid=$result->isValid(); //return false
$errors=$result->getErrors(); //return ['Value is not valid format email.']

$result=$validator->validate('');
$valid=$result->isValid(); //return false
$errors=$result->getErrors(); //return ['Value can\'t be empty.']

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

3458d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4acb0470eeb89d512ba7302a6184b091c03a433695340e6a4e87e75fe87bdbc6?d=identicon)[newclass-pl](/maintainers/newclass-pl)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/newclass-judex/health.svg)

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

###  Alternatives

[chaoswey/taiwan-id-validator

台灣身分證、統一編號驗證

319.9k](/packages/chaoswey-taiwan-id-validator)

PHPackages © 2026

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