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 Hydrator

Dto Hydrator Laravel Package

salamov/dto-hydrator

Lightweight Laravel/PHP package for hydrating DTOs from arrays, request data, or other sources. Map input into typed objects with minimal boilerplate, keeping data transfer clean, explicit, and predictable.

View on GitHub
Deep Wiki
Context7

salamov/dto-hydrator is a lightweight PHP package that simplifies mapping raw data—such as request payloads or arrays—into typed Data Transfer Objects. It removes repetitive manual assignment, letting you define a DTO class and hydrate it in a single call while keeping your code clean and predictable.

Built for modern Laravel and PHP projects, the package focuses on explicit, safe hydration so your DTOs stay immutable and easy to test.

  • Attribute-driven mapping from arrays to DTO properties
  • Supports nested DTOs and typed collections
  • Handles default values and optional fields gracefully
  • Framework-agnostic with first-class Laravel integration
  • Minimal API with clear error reporting for invalid input
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.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections