PHPackages                             frobou/frobou-validator - 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. frobou/frobou-validator

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

frobou/frobou-validator
=======================

Frobou Validator

0.0.13(8y ago)03451MITPHPPHP &gt;=5.4.0

Since Nov 16Pushed 8y ago2 watchersCompare

[ Source](https://github.com/frobou/frobou-validator)[ Packagist](https://packagist.org/packages/frobou/frobou-validator)[ Docs](http://frobou.com.br)[ RSS](/packages/frobou-frobou-validator/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (3)Versions (13)Used By (1)

frobou-validator
----------------

[](#frobou-validator)

[![SensioLabsInsight](https://camo.githubusercontent.com/d167649266d1db799109adb57525b04418b9a8deb5f50d131636e8bcf8809ce2/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f32333865643337312d323631652d343537322d626138352d3263613166366531373262382f736d616c6c2e706e67)](https://insight.sensiolabs.com/projects/238ed371-261e-4572-ba85-2ca1f6e172b8)

validate some data, like min value, max value, email, etc.
data must be a stdClass object.
Now with logs...

**usage:**

```
$this->data = [];
$this->object = new \stdClass();
$log = new Logger('log-test');
$log->pushHandler(new StreamHandler(__DIR__.'/logs/log-test.log', Logger::INFO));
$this->validator = new FrobouValidator(); // or $this->validator = new FrobouValidator($log);
public function testValidateDateEnOk()
{
    $this->data['date_en'] = [];
    $this->object->dt_1 = '2015-11-22';
    $this->object->dt_2 = '2016-02-09';
    array_push($this->data['date_en'], clone $this->object, ['dt_1', 'dt_2']);
    $this->assertTrue($this->validator->validate(['date_en'], $this->data, true));
}

public function testValidateDateEnFail()
{
    $this->data['date_en'] = [];
    $this->object->dt_1 = '1';
    $this->object->dt_2 = '1';
    array_push($this->data['date_en'], clone $this->object, ['dt_1', 'dt_2']);
    $this->assertArrayHasKey('date_en', $this->validator->validate(['date_en'], $this->data, true));
}

```

**sample data:**

```
array_push($this->data['integer'], clone $this->object, ['start', 'qtty']);
array_push($this->data['struct'], clone $this->object, ['start', 'qtty', 'pastel'], ['pimponeta']); //['pimponeta'] is an optional array
array_push($this->data['required'], clone $this->object, ['start', 'qtty', 'pastel']);
array_push($this->data['values'], clone $this->object, ['pastel'], ['carne', 'queijo', 'ovo']);
array_push($this->data['maxlen'], clone $this->object, ['pastel' => 12, 'start' => 3]);
array_push($this->data['minlen'], clone $this->object, ['pastel' => 5, 'start' => 2]);
array_push($this->data['min'], $this->object, ['start' => 1, 'qtty' => 1]);
array_push($this->data['max'], $this->object, ['start' => 1, 'qtty' => '1']);
array_push($this->data['email'], clone $this->object, ['email']);
array_push($this->data['ip'], clone $this->object, ['ip_1', 'ip_2']);
array_push($this->data['date_en'], clone $this->object, ['dt_1', 'dt_2']);

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% 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 ~31 days

Recently: every ~7 days

Total

12

Last Release

3170d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/65d412fa6236a41066fca7ab940426920b4a4194e918e9b6c5de3f8e50d6567d?d=identicon)[blobs.frobou](/maintainers/blobs.frobou)

---

Top Contributors

[![efepimenta](https://avatars.githubusercontent.com/u/6652068?v=4)](https://github.com/efepimenta "efepimenta (7 commits)")[![frobou](https://avatars.githubusercontent.com/u/15693312?v=4)](https://github.com/frobou "frobou (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/frobou-frobou-validator/health.svg)

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M526](/packages/shopware-core)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45344.0k1](/packages/pressbooks-pressbooks)

PHPackages © 2026

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