Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Dto Param Converter Bundle Laravel Package

pfilsx/dto-param-converter-bundle

A Symfony bundle that converts request parameters into typed DTOs via a param converter, keeping controllers clean and making input handling more explicit, reusable, and testable.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Controller-layer ergonomics / boilerplate reduction. The bundle's job is narrow and concrete: take an incoming Symfony request and hydrate a typed DTO, so controllers stop doing hand-rolled $request->get('field') assembly and ad-hoc casting. That is a real, recurring tax on every endpoint your team ships — worth quantifying (endpoints × fields × churn rate) before deciding anything.
  • Build vs. buy vs. vendor for input contracts. The pattern (typed request objects as the boundary between HTTP and domain) is the decision; this package is one implementation of it. Because it is MIT-licensed, small in scope, and has zero dependents, the realistic options are: adopt as a dependency, fork and own it internally, or reimplement the ~200-line converter yourself. The PM decision is whether typed inbound contracts are a standard, not whether this specific repo is good.
  • API contract standardization on the roadmap. If you are tightening validation, OpenAPI generation, or error-shape consistency, DTO-first request handling is a prerequisite. This package is a cheap way to prototype that standard on one service before committing the platform team.
  • Framework-context caveat that changes the decision. This is a Symfony bundle built on ParamConverter — it is not a Laravel package, despite the brief framing. If your estate is Laravel-first, this repo is a design reference, not a candidate dependency; the equivalent buy decision is spatie/laravel-data or lorisleiva/laravel-actions. Do not let a pattern-level conversation turn into a framework mismatch six weeks into implementation.
  • Not a decision this supports: anything load-bearing. Seven stars, zero dependents, and a last release in March 2023 means there is no community validation and no observable maintenance cadence. Treat it as a reference implementation and a source of a good idea.

When to Consider This Package

Reasonable to consider when:

  • You are on Symfony (5.x/6.x era) and already use ParamConverter-style argument resolution; the integration cost is genuinely low.
  • Your team is small and the DTO surface is simple — flat request payloads with scalar and nested-object fields, not complex polymorphic bodies.
  • You are willing to fork and vendor it, taking ownership of PHP-version compatibility and security patching yourself. MIT makes this clean; the tiny codebase makes it cheap.
  • You want a low-ceremony proof of concept to win an argument about typed request boundaries before investing in a real internal abstraction.

Look elsewhere when:

  • You are on Laravel, or on a Symfony version where sensio/framework-extra-bundle's ParamConverter is deprecated/removed — the underlying mechanism may not exist.
  • You need a maintained dependency with responsive security handling. The 2023-03-27 release date plus 7 stars is a credible signal that no one is watching the repo; a CVE or a PHP minor-version break would land on your team.
  • Your request-mapping needs go beyond hydration: nested validation rules, discriminated unions, serializer groups, or partial updates. Mainstream alternatives (Symfony Serializer + validator, spatie/laravel-data on the Laravel side) cover the long tail this does not.
  • Procurement or architecture review requires provenance, SLAs, or vendor accountability. Zero dependents means zero independent validation of fitness.

How to Pitch It (Stakeholders)

To executives: This is a small, free, MIT-licensed utility that removes repetitive plumbing from API endpoints. It is not a platform commitment. The honest framing: the idea is worth adopting; the repository is not worth depending on. Recommendation is to spend a few engineering days replicating the pattern in-house or adopting a maintained equivalent, rather than onboarding a repo with seven stars and no releases since March 2023. Cost of the internal path is low; risk of the dependency path is unquantifiable because nobody else is using it.

To engineering: The bundle converts an HTTP request into a typed DTO via Symfony's ParamConverter, which buys you compile-time-ish safety at the controller boundary, less casting noise, and a natural place to hang validation. Two things to weigh before you composer require it: first, it is Symfony-only — if we are standardizing on Laravel, this is a pattern to copy, not a package to install. Second, it is unmaintained by any observable measure; we would be its most active consumer. My recommendation is to read it, fork the parts we need, and own the result — or use a mainstream alternative if we would rather not own it at all. Either way, the win is the typed inbound contract, and we can capture that in days.

Decision requested: approve the pattern (typed DTOs as the request/domain boundary) and one of the two delivery paths — fork-and-own, or adopt a maintained equivalent — rather than approving this specific package.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console