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

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

ngomafortuna/validate
=====================

Input data validation library based on type (Bilioteca de validação de dados de entrada em função do tipo)

v1.0.0(4w ago)11GPL-3.0PHPPHP &gt;=8.0

Since Jun 1Pushed 4w agoCompare

[ Source](https://github.com/ngomaf/validate)[ Packagist](https://packagist.org/packages/ngomafortuna/validate)[ RSS](/packages/ngomafortuna-validate/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (7)Used By (0)

Validate
========

[](#validate)

Input data validation library based on type (Bilioteca de validação de dados de entrada em função do tipo)

Install
-------

[](#install)

```
composer require ngomafortuna/validate
```

Sintaxe end use mode
--------------------

[](#sintaxe-end-use-mode)

```
Validate::get([
    "index-of-array-to-validate" => 'type-data',
], $array);
```

Options of type-date

- s: string
- i: integer
- e: e-mail
- u: url
- b: boolean
- no action

Exemple

```
use Ngomafortuna\Validate;

$cleanData = Validate::get([
    "title" => 's',
    "img" => 'i',
    "link" => 'u'
], $_POST);
```

Require
-------

[](#require)

Necessary PHP 8.0 or more (Necessário PHP 8.0 ou superior)

Test
----

[](#test)

```
require_once PATH . '/vendor/autoload.php'; // use to correct PATH dirname(__FILE__, 2)

use Ngomafortuna\Validate\Validate;

$validate = new Validate;

$data = [
    'full_name' => 'Rosa Fortuna ',
    'description' => 'Your description - Sua descrição',
    'edge' => 24,
    'genre' => 'F'
];

$cleanDate = $validate->get([
    'full_name' => 's',
    'description' => 's',
    'edge' => 'i',
    'genre' => 's'
], $data);

var_dump($cleanDate);
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance74

Regular maintenance activity

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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

Total

5

Last Release

28d ago

Major Versions

v0.0.4 → v1.0.02026-06-05

PHP version history (2 changes)v0.0.1PHP &gt;=7.4

v0.0.3PHP &gt;=8.0

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

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