PHPackages                             jfernando/php-validate - 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. jfernando/php-validate

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

jfernando/php-validate
======================

A Java Bean Validation based for PHP

1(9y ago)0825↓50%2PHP

Since Oct 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/jfernandomota/php-validate)[ Packagist](https://packagist.org/packages/jfernando/php-validate)[ RSS](/packages/jfernando-php-validate/feed)WikiDiscussions master Synced 1mo ago

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

PHP Validations
===============

[](#php-validations)

A set of tools for validations with PHP.

Introduction
------------

[](#introduction)

This library offers tools for validations of many kinds of problem:

- `ValidatorVerifier` A set of tools for object validations based in annotations, having inspiration in **Java Beans Validations**
- `Transformation` A object transformation based in annotations
- `MapValidate` A simple set of tools for validate associative array
- `Schema` A set of tools for validate associative array, schema based, inspirated in [hapijs/joi](https://github.com/hapijs/joi)

`ValidatorVerifier`
-------------------

[](#validatorverifier)

```

```

`Transformation`
----------------

[](#transformation)

```

```

`MapValidate`
-------------

[](#mapvalidate)

```

```

`Schema`
--------

[](#schema)

```
    $schema = Schema::schema([
        'name'    => Schema::string()->min(3)->max(80),
        'address' => Schema::schema([
            'street' => Schema::string()->min(3)->max(50)
            'number' => Schema::numeric(['code' => 'invalid_number', 'message' => 'Invalid number']),
            'other' => Schema::string()->required(false) // Optional field
        ]),
        'projects'  => Schema::array()->schema([
            'name' => Schema::string()
        ])
    ]);

    $errors = $schema->getErrors($data);
    $errors->isValid(); // true | false
    $errors->getErrors(); //
```

This library is expansive for use custom validations

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3491d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/jfernando-php-validate/health.svg)

```
[![Health](https://phpackages.com/badges/jfernando-php-validate/health.svg)](https://phpackages.com/packages/jfernando-php-validate)
```

###  Alternatives

[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[linio/input

Abstracts HTTP request input handling, providing an easy interface for data hydration and validation

3856.2k](/packages/linio-input)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)[superbrave/gdpr-bundle

A Symfony bundle for using entity annotations according to GDPR requirements and anonymizing/exporting data

1120.0k](/packages/superbrave-gdpr-bundle)

PHPackages © 2026

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