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)

v0.0.4(11mo ago)01GPL-3.0PHPPHP &gt;=8.0

Since Jun 1Pushed 11mo agoCompare

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

READMEChangelogDependenciesVersions (6)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

24

—

LowBetter than 32% of packages

Maintenance51

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

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

Total

4

Last Release

342d ago

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 (10 commits)")

### 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

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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