PHPackages                             polderknowledge/entityservice-zend-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. polderknowledge/entityservice-zend-validator

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

polderknowledge/entityservice-zend-validator
============================================

This library provides Zend\\Validator support for the polderknowledge/entityservice library

1.0.1(8y ago)07.2kMITPHPPHP ~5.5|~7.0

Since Dec 3Pushed 8y ago7 watchersCompare

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

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

entityservice-zend-validator
============================

[](#entityservice-zend-validator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a9e40a22164e13d89bb4d92aabe90d564a7dab081d062c6d74e2a6037dda68c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706f6c6465726b6e6f776c656467652f656e74697479736572766963652d7a656e642d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/polderknowledge/entityservice-zend-validator)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/f2ad076beafe9092c67f0c516d8ecbb1a7492c4217f4123d4c340f05dc5079dd/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f706f6c6465726b6e6f776c656467652f656e74697479736572766963652d7a656e642d76616c696461746f722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/polderknowledge/entityservice-zend-validator)[![Coverage Status](https://camo.githubusercontent.com/c1ec9bceacc540360f382dd92f6ef41826425878fea787bf8e7f59b66d3e860b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f706f6c6465726b6e6f776c656467652f656e74697479736572766963652d7a656e642d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/polderknowledge/entityservice-zend-validator/code-structure)[![Quality Score](https://camo.githubusercontent.com/c88285cff9e09d9bfef45b563530ab3cc32866a2d20bfdb50ddb80d90d612196/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f706f6c6465726b6e6f776c656467652f656e74697479736572766963652d7a656e642d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/polderknowledge/entityservice-zend-validator)[![Total Downloads](https://camo.githubusercontent.com/24942da89905b998464f89030d93bb02fe653821242c5aa8331c3b5e17a2da00/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706f6c6465726b6e6f776c656467652f656e74697479736572766963652d7a656e642d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/polderknowledge/entityservice-zend-validator)

This library provides Zend\\Validator support for the polderknowledge/entityservice library

Install
-------

[](#install)

Via Composer

```
$ composer require polderknowledge/entityservice-zend-validator
```

Usage
-----

[](#usage)

After you have configured the EntityService you can use the validators without further config:

```
namespace MyApp\InputFilter;

use PolderKnowledge\EntityService\Validator\EntityExists;
use Zend\InputFilter\InputFilter;
use PonyApp\Entity\Pony;

class PonyEditInputFilter extends InputFilter
{
    /**
     * Initializes the input filter.
     */
    public function init()
    {
        $this->add([
            'name' => 'ponyId',
            'validators' => [
                [
                    'name' => EntityExists::class, // or EntityNotExists
                    'options' => [
                        'entity' => Pony::class,
                        'field' => 'name', // defaults to id
                    ],
                ],
            ],
        ]);
    }
}
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please report them via [HackerOne](https://hackerone.com/polderknowledge)instead of using the issue tracker or e-mail.

Community
---------

[](#community)

We have an IRC channel where you can find us every now and then. We're on the Freenode network in the channel #polderknowledge.

Credits
-------

[](#credits)

- [Polder Knowledge](https://polderknowledge.com)
- [All Contributors](../../contributors)

License
-------

[](#license)

Please see [LICENSE.md](LICENSE.md) for the license of this application.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~320 days

Total

2

Last Release

3175d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2264982?v=4)[Polder Knowledge](/maintainers/polderknowledge)[@polderknowledge](https://github.com/polderknowledge)

---

Top Contributors

[![waltertamboer](https://avatars.githubusercontent.com/u/508054?v=4)](https://github.com/waltertamboer "waltertamboer (4 commits)")[![jaapio](https://avatars.githubusercontent.com/u/1060433?v=4)](https://github.com/jaapio "jaapio (1 commits)")

---

Tags

polderknowledgeentityservice-zend-validator

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/polderknowledge-entityservice-zend-validator/health.svg)

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

###  Alternatives

[stroker/form

ZF2 module for extending forms with live clientside validation

3957.1k](/packages/stroker-form)[codeedu/code_validator

Lib to validator things

105.4k](/packages/codeedu-code-validator)

PHPackages © 2026

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