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

ActiveLibrary

whatwedo/validator-test
=======================

A fluid Validation tester

v0.2.0(2y ago)110.3k—4.7%MITPHPPHP &gt;=8.1

Since Nov 3Pushed 2y ago10 watchersCompare

[ Source](https://github.com/whatwedo/validator-test)[ Packagist](https://packagist.org/packages/whatwedo/validator-test)[ RSS](/packages/whatwedo-validator-test/feed)WikiDiscussions develop Synced 1mo ago

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

ValidatorTest
=============

[](#validatortest)

Fluid Validator Tester, inspired by zenstruck/browser.

Usage
-----

[](#usage)

```
class AppUserValidatorTest extends KernelTestCase
{
    use ValidationTestTrait;

    public function testAppUserRegisterGroup(): void
    {
        $appUser = new AppUser();

        $this->getValidator()

            ->setGroups(['register'])

            ->validate($appUser)
            ->assertCount(4)

            ->assertNotNullTrue('firstname')
            ->validate($appUser->setFirstname('mauri'))
            ->assertNotNullFalse('firstname')

            ->assertCountViolation(4, NotNull::IS_NULL_ERROR);

            ->assertHasViolation(NotNull::IS_NULL_ERROR)
            ->assertHasNoViolation(NotBlank::IS_BLANK_ERROR)

            ->validate($appUser->setEmail('mauri')
            ->assertViolationTrue(Email::INVALID_FORMAT_ERROR, 'email')
            ->validate($appUser->setEmail('mauri@whatwedo.ch'))
            ->assertViolationFalse(Email::INVALID_FORMAT_ERROR, 'email')

           ;
    }
```

### use

[](#use)

```
        $this->getValidator()
            ->setGroups(['register'])
            ->validate($appUser)
            ->use(function (ConstraintViolationListInterface $constraintViolationList) {
                /*..*/
            })
        ;
```

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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 ~872 days

Total

2

Last Release

775d ago

PHP version history (2 changes)0.1.0PHP &gt;=7.4

v0.2.0PHP &gt;=8.1

### Community

Maintainers

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

---

Top Contributors

[![rugbymauri](https://avatars.githubusercontent.com/u/5549264?v=4)](https://github.com/rugbymauri "rugbymauri (6 commits)")[![tuxes3](https://avatars.githubusercontent.com/u/5341293?v=4)](https://github.com/tuxes3 "tuxes3 (1 commits)")

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M309](/packages/easycorp-easyadmin-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[shopware/storefront

Storefront for Shopware

684.2M148](/packages/shopware-storefront)

PHPackages © 2026

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