PHPackages                             lavibi/popoya - 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. lavibi/popoya

ActiveLibrary

lavibi/popoya
=============

Validator

0.0.6(2y ago)019MITPHP

Since Apr 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/lavibi/popoya)[ Packagist](https://packagist.org/packages/lavibi/popoya)[ RSS](/packages/lavibi-popoya/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

Popoya
======

[](#popoya)

Popoya -&gt; Poppoya

A simple PHP validator library.

[![Build Status](https://camo.githubusercontent.com/477abd4d1ee9f7f5ea65053b5f5d0a5770661e2da713356f2a6f6d5d905d36e7/68747470733a2f2f7472617669732d63692e6f72672f6c61766962692f706f706f79612e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lavibi/popoya) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/86f4ba73aa914ebc9330cefae49a1cf35b4876b3c731916be2bb175edd8feba8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c61766962692f706f706f79612f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lavibi/popoya/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/79bc5ebe14efcc66237edf32097e206843672c129021f7f0bb8bb81c6909d0f8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c61766962692f706f706f79612f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lavibi/popoya/?branch=master)

Single Validator
----------------

[](#single-validator)

Single validator

```
use Lavibi\Popoya;

$sameValidator = new Popoya\Same();

$sameValidator->setOptions['
    'compared_value' => 5
'];

$sameValidator->isValid(5);
```

Options can be added via readable method

```
use Lavibi\Popoya;

$sameValidator = new Popoya\Same();

$sameValidator->sameAs(5); // set options compared_value = 5

$sameValidator->isValid(5);
```

Validator chain
---------------

[](#validator-chain)

Validate value with more than one validator

```
$chainValidator = new Popoya\ValidatorChain();

$chainValidator->addValidator((new Popoya\Same())->setOptions(...));
$chainValidator->addValidator((new Popoya\NotSame())->setOptions(...));

$chainValidator->isValid(5);
```

Validator
---------

[](#validator)

Full validator for dataset like form data, API params

```
$validator = new Popoya\Validator();

$validator->isRequired('username')->maxLenght(20);
$validator->isRequired('password')->lenght(30, 50);
$validator->isOptional('email')->isEmail();
$validator->isOptional('avatar')->isUpload()->isImage();

// PSR7 post request
$validator->isValid(array_merge(
    $request->getParsedBody(),
    $request->getUploadedFiles()
));
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Total

3

Last Release

1045d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0421427d55e82b3d51e7d1f3c11ef11feecdda92dd34b86720e19303ab73527d?d=identicon)[micti](/maintainers/micti)

---

Top Contributors

[![micti](https://avatars.githubusercontent.com/u/572190?v=4)](https://github.com/micti "micti (35 commits)")

---

Tags

validator

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/lavibi-popoya/health.svg)

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

###  Alternatives

[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

538204.9M23](/packages/league-uri-interfaces)[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[simplesamlphp/saml2

SAML2 PHP library from SimpleSAMLphp

30317.2M40](/packages/simplesamlphp-saml2)[php-heroku-client/php-heroku-client

A PHP client for the Heroku Platform API

24404.8k4](/packages/php-heroku-client-php-heroku-client)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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