Download the PHP package dualmedia/symfony-request-dto-bundle without Composer
On this page you can find all versions of the php package dualmedia/symfony-request-dto-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package symfony-request-dto-bundle
Symfony DTO Bundle
This bundle aims to lower the burden of typechecking, casting, loading entities and related annoyances of using requests in your api.
Bundle will automatically hook into Doctrine ORM Bundle and Nelmio API Docs Bundle so no additional configuration should be needed.
Features
- Automatic DTO resolution from controller arguments — no manual extraction, casting, or validation wiring
- Type coercion for scalars, enums (backed or by case name), dates, and uploaded files
- Doctrine entity loading directly from request fields (
#[FindOneBy],#[FindBy]) - Validator integration — Symfony constraints on properties and fields are enforced in a single pass
- Nested DTOs, collections of DTOs, and
#[AsRoot]for flat top-level payloads - Nelmio API Doc integration — parameters, request bodies, enum cases, formats, and PHPDoc descriptions are described automatically
- Configurable request bags (query, body, headers, cookies, attributes, files) via
#[Bag] - Configurable custom
#[Action]s for fields, entities and more. Set custom responses via an easy to handle event. - Event hooks for resolved / invalid / action scenarios — return custom responses from listeners
- Symfony profiler panel with per-request DTO resolution timings
- Cached metadata via opcache-backed PHP files — near-zero reflection cost after warm-up
Install
Then add the bundle to your config/bundles.php file like so
If applicable your Doctrine entity managers will be detected automatically and used as default providers for classes to be loaded with your requests if needed.
Quick start
More examples
See EXAMPLES.md for enums, dates, nested DTOs, entity loading, and root-level payloads.
Upgrades
See CHANGES.md
All versions of symfony-request-dto-bundle with dependencies
dualmedia/doctrine-query-creator Version ^1
symfony/framework-bundle Version ^7.4||^8.0
symfony/event-dispatcher Version ^7.4||^8.0
symfony/validator Version ^7.4||^8.0
doctrine/collections Version ^2.6
symfony/type-info Version ^7.4||^8.0