PHPackages                             stas-plov/dto-validator-bundle - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. stas-plov/dto-validator-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

stas-plov/dto-validator-bundle
==============================

Adds validator for middleware request support in your Symfony application

v1.1.4(2y ago)1187MITPHPPHP &gt;=8.1

Since Jan 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/StasPlov/StasPlovDtoValidatorBundle)[ Packagist](https://packagist.org/packages/stas-plov/dto-validator-bundle)[ RSS](/packages/stas-plov-dto-validator-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (9)Versions (6)Used By (0)

[![Minimum PHP version: 8.2.0](https://camo.githubusercontent.com/70d375e17e43aad3528db3b87d04a12ff5242ea7d6392ac5b755da2ff444a5b6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322e302532422d626c75652e737667)](https://packagist.org/packages/stas-plov/dto-validator-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/06aa68aaa97940c3455c3a82928015439f51d323a78b958aa9364d869235fda0/687474703a2f2f706f7365722e707567782e6f72672f737461732d706c6f762f64746f2d76616c696461746f722d62756e646c652f76)](https://packagist.org/packages/stas-plov/dto-validator-bundle)[![Total Downloads](https://camo.githubusercontent.com/884bf2b1e5116734a6aa166a7276ec32e41f3dd04a157dd740ce38d7b1c4b21f/687474703a2f2f706f7365722e707567782e6f72672f737461732d706c6f762f64746f2d76616c696461746f722d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/stas-plov/dto-validator-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/289d09450f453f98c8e6893bca77649f6710ca370286a9817e06d6932317c3b1/687474703a2f2f706f7365722e707567782e6f72672f737461732d706c6f762f64746f2d76616c696461746f722d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/stas-plov/dto-validator-bundle)[![License](https://camo.githubusercontent.com/1cc441c992aff7a2adb791e280d3011bcbc78bc727e16ee77db6421fcbe75522/687474703a2f2f706f7365722e707567782e6f72672f737461732d706c6f762f64746f2d76616c696461746f722d62756e646c652f6c6963656e7365)](https://packagist.org/packages/stas-plov/dto-validator-bundle)

StasPlovDtoValidatorBundle
==========================

[](#stasplovdtovalidatorbundle)

About
-----

[](#about)

The StasPlovDtoValidatorBundle Validating the Request by DTO in the context of symfony.

The core idea of StasPlovDtoValidatorBundle is to validate input data in the controller from the Request using so-called DTO (Data Transfer Object) entities.

```
#[ValidateDto(class: CreateDto::class)]
#[Route(path: '/create/user', name: 'api-user-create', methods: ['POST'])]
public function createUser(CreateDto $createDto): Response {
	// ... some code
}
```

The `$createDto` variable will contain all the data described in the corresponding `CreateDto` class.

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

[](#installation)

Require the `stas-plov/dto-validator-bundle` package in your composer.json and update your dependencies:

```
composer require stas-plov/dto-validator-bundle
```

Flex, you'll need to enable it manually as explained [in the docs](https://symfony.com/doc/current/setup/flex.html).

Usage
-----

[](#usage)

See [the documentation](./Resources//doc//HowToUse.md) for usage instructions.

License
-------

[](#license)

Released under the MIT License, see LICENSE.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

5

Last Release

751d ago

PHP version history (2 changes)v1.1.0PHP &gt;=8.2

v1.1.4PHP &gt;=8.1

### Community

Maintainers

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

---

Top Contributors

[![StasPlov](https://avatars.githubusercontent.com/u/62498475?v=4)](https://github.com/StasPlov "StasPlov (29 commits)")

---

Tags

apibundledtorestrest-apisymfonyvalidatevalidatorapisymfonybundlevalidatorrestvalidatedto

### Embed Badge

![Health badge](/badges/stas-plov-dto-validator-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/stas-plov-dto-validator-bundle/health.svg)](https://phpackages.com/packages/stas-plov-dto-validator-bundle)
```

###  Alternatives

[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M232](/packages/nelmio-api-doc-bundle)[api-platform/core

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

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

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

8.4k5.6M647](/packages/sylius-sylius)[lexik/jwt-authentication-bundle

This bundle provides JWT authentication for your Symfony REST API

2.6k58.7M210](/packages/lexik-jwt-authentication-bundle)[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)

PHPackages © 2026

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