PHPackages                             revenkroz/validating-param-converter - 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. revenkroz/validating-param-converter

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

revenkroz/validating-param-converter
====================================

Param Converter with request validation

v1.2(3y ago)1351MITPHPPHP ^8.0

Since Sep 2Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/revenkroz/validating-param-converter)[ Packagist](https://packagist.org/packages/revenkroz/validating-param-converter)[ Docs](https://github.com/revenkroz/validating-param-converter)[ RSS](/packages/revenkroz-validating-param-converter/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (7)Versions (7)Used By (0)

Symfony ParamConverter with request validation
==============================================

[](#symfony-paramconverter-with-request-validation)

The idea is to validate a raw payload and then map the request to object. It just adds the validation step between decoding and denormalization.

Installation
------------

[](#installation)

```
composer require revenkroz/validating-param-converter
```

Add service to your `services.yaml`:

```
Revenkroz\ValidatingParamConverter\Request\ParamConverter\ValidatingParamConverter:
    class: Revenkroz\ValidatingParamConverter\Request\ParamConverter\ValidatingParamConverter
    tags:
        - { name: 'request.param_converter', priority: false }
```

Usage
-----

[](#usage)

Create a DTO that implements `ValidatableParamInterface`:

```
use Revenkroz\ValidatingParamConverter\Request\ValidatableParamInterface;

class YourDto implements ValidatableParamInterface
{
    public static function getRequestConstraint(): Constraint
    {
        // ...
    }
}
```

Get your DTO in controller method:

```
public function customAction(YourDto $dto, Request $request): Response {}
```

To validate a query using your validation groups, use the `CustomGroupsValidatableParamInterface` interface instead:

```
use Revenkroz\ValidatingParamConverter\Request\CustomGroupsValidatableParamInterface;

class YourDto implements CustomGroupsValidatableParamInterface
{
    public static function getRequestConstraint(): Constraint
    {
        // ...
    }

    public static function getRequestValidationGroups(): array
    {
        return ['one_group', 'another_group'];
    }
}
```

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance41

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Recently: every ~104 days

Total

6

Last Release

1294d ago

### Community

Maintainers

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

---

Top Contributors

[![revenkroz](https://avatars.githubusercontent.com/u/6481750?v=4)](https://github.com/revenkroz "revenkroz (8 commits)")

---

Tags

phpsymfonysymfony-bundlevalidation

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/revenkroz-validating-param-converter/health.svg)

```
[![Health](https://phpackages.com/badges/revenkroz-validating-param-converter/health.svg)](https://phpackages.com/packages/revenkroz-validating-param-converter)
```

###  Alternatives

[sylius/sylius

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

8.4k5.6M647](/packages/sylius-sylius)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k48.1M235](/packages/api-platform-core)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[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)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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