PHPackages                             reliv/zf-input-filter-service - 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. [API Development](/categories/api)
4. /
5. reliv/zf-input-filter-service

ActiveLibrary[API Development](/categories/api)

reliv/zf-input-filter-service
=============================

Uses ZendFrameworks InputFilter config to build filters and validators from services from a general service container

0.1.1(8y ago)01.1k11BSD-3-ClausePHPPHP &gt;=5.5

Since Jan 5Pushed 8y ago3 watchersCompare

[ Source](https://github.com/reliv/zf-input-filter-service)[ Packagist](https://packagist.org/packages/reliv/zf-input-filter-service)[ Docs](https://github.com/reliv/zf-input-filter-service)[ RSS](/packages/reliv-zf-input-filter-service/feed)WikiDiscussions master Synced 1mo ago

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

zf-input-filter-service
=======================

[](#zf-input-filter-service)

Allow services as input-filters
-------------------------------

[](#allow-services-as-input-filters)

- Uses ZendFrameworks InputFilter config to build filters and validators from services from a general service container.
- Requires special config values to be added to ZFs standard config format
- Falls back to ZFs standard input filter factory
- Utilizes config as:

    ```
    [
        'test1' => [
            'name' => 'test1',
            'required' => true,
            'filters' => [
                [
                    // Invoked
                    'name' => 'ZfInputFilterService\Filter\Test',
                    'options' => [
                        'test' => 'filterOptionInvoked'
                    ],
                ],
                [
                    // Service
                    'name' => 'ZfInputFilterService\Filter\TestService',
                    'service' => true,
                    'options' => [
                        'test' => 'filterOptionService'
                    ]
                ]
            ],
            'validators' => [
                [
                    // Invoked
                    'name' => 'ZfInputFilterService\Validator\Test',
                    'options' => [
                        'test' => 'validatorOptionInvoked',
                        'messages' => [
                            'TEST' => 'validatorMessageTemplateInvoked',
                        ],
                    ],
                ],
                [
                    // Service
                    'name' => 'ZfInputFilterService\Validator\TestService',
                    'service' => true,
                    'options' => [
                        'test' => 'validatorOptionService',
                        'messages' => [
                            'TEST' => 'validatorMessageTemplateService',
                        ],
                    ],
                ],
            ],
        ],
        // InputFilter Config Sevice
        'subtest1' => [
            // Service
            'name' => 'subtest1',
            'service' => true,
            'type' => 'ZfInputFilterService\InputFilter\TestInputFilter',
            'options' => [
                'test' => 'My test properties'
            ]
        ],
    ],

    ```
- NOTE: This is a basic hack to get around the silly way ZF input filters and the factory are written

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

3236d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d89ed9b1fb36217e63fbabed855b75ccbca9a740b8662ed44aa982d5d7c98f7?d=identicon)[reliv](/maintainers/reliv)

---

Top Contributors

[![rodmcnew](https://avatars.githubusercontent.com/u/1828506?v=4)](https://github.com/rodmcnew "rodmcnew (1 commits)")

---

Tags

middlewareapimodulereliv

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/reliv-zf-input-filter-service/health.svg)

```
[![Health](https://phpackages.com/badges/reliv-zf-input-filter-service/health.svg)](https://phpackages.com/packages/reliv-zf-input-filter-service)
```

###  Alternatives

[shahghasiadil/laravel-api-versioning

Elegant attribute-based API versioning solution for Laravel applications with built-in deprecation management and version inheritance

2913.6k](/packages/shahghasiadil-laravel-api-versioning)

PHPackages © 2026

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