wendelladriel/laravel-validated-dto
Data Transfer Objects with validation for Laravel applications
v4.7.0
708K downloads/mo
#4040 most downloaded on Packagist
WendellAdriel/laravel-validated-dto
What this package is like to depend on
Last release 2 months ago
26 May 2026
Ships fairly regularly
a new release about every 2 months
Some releases are documented
notes for 22 of 58 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
58 releases · first in 2022
7 releases in the last 12 months
see the full history below
Release timeline
58 releases · Dec 2022 to May 2026Releases
latest 58-
v4.7.026 May 2026Release notes
Open source →What's Changed
- Update Laravel badge link style in README by @peterfox in #123
- Move docs to VitePress by @WendellAdriel in #124
New Contributors
Full Changelog: v4.6.0...v4.7.0
Release notes
Open source →-
Added package-specific publish tags: validated-dto , validated-dto-config , and validated-dto-stubs .
-
Updated the dto:stubs command to use the new validated-dto-stubs publish tag.
Release notes
Open source →- Added package-specific publish tags:
validated-dto,validated-dto-config, andvalidated-dto-stubs. - Updated the
dto:stubscommand to use the newvalidated-dto-stubspublish tag.
-
v4.6.011 Mar 2026Release notes
Open source →What's Changed
- Add Laravel Validated DTO development skill by @WendellAdriel in #122
Full Changelog: v4.5.0...v4.6.0
-
v4.5.025 Feb 2026Release notes
Open source → -
v4.4.116 Jan 2026 -
v4.4.015 Dec 2025Release notes
Open source →What's Changed
- Add new SkipOnTransform attribute by @WendellAdriel in #118
Full Changelog: v4.3.0...v4.4.0
-
v4.3.012 Dec 2025Release notes
Open source →What's Changed
- Add Lazy, Provide and Receive attributes by @WendellAdriel in #117
Full Changelog: v4.2.2...v4.3.0
Release notes
Open source →-
Added new Lazy attribute.
-
Added new Provide attribute.
-
Added new Receive attribute.
Release notes
Open source →- Added new
Lazyattribute. - Added new
Provideattribute. - Added new
Receiveattribute.
-
v4.2.213 Oct 2025Release notes
Open source →What's Changed
- Fix issue when using DTOCast with Cast attribute by @WendellAdriel in #115
Full Changelog: v4.2.1...v4.2.2
-
v4.2.119 Jun 2025Release notes
Open source →Fixed issue with Serialization and removed the
internalannotation from theResourceCollectionclass.
Full Changelog: v4.2.0...v4.2.1 -
v4.2.019 Jun 2025Release notes
Open source →What's Changed
- Fix issue of missing nested DTO properties when transforming DTO by @MasterFelX in #108
New Contributors
- @MasterFelX made their first contribution in #108
Full Changelog: v4.1.0...v4.2.0
-
v4.1.004 Mar 2025Release notes
Open source →What's Changed
- Generate typescript definitions by @benbjurstrom in #102
New Contributors
- @benbjurstrom made their first contribution in #102
Full Changelog: v4.0.0...v4.1.0
-
v4.0.026 Feb 2025Release notes
Open source →-
Added support for Laravel 12.
-
Removed support for Laravel 9 and 10.
-
Removed support for PHP 8.1, minimum version now is 8.2.
Release notes
Open source →- Added support for Laravel 12.
- Removed support for Laravel 9 and 10.
- Removed support for PHP 8.1, minimum version now is 8.2.
-
-
v3.10.324 Feb 2025Nothing published for this version
-
v3.10.212 Dec 2024Nothing published for this version
-
v3.10.111 Nov 2024Nothing published for this version
-
v3.10.006 Nov 2024 -
v3.9.005 Nov 2024Release notes
Open source →- Renamed the $data property to $dtoData and marked it as internal to avoid issues with conflicts.
Release notes
Open source →- Renamed the
$dataproperty to$dtoDataand marked it asinternalto avoid issues with conflicts.
-
v3.8.120 Sep 2024Nothing published for this version
-
v3.8.024 Jul 2024 -
v3.7.122 Jul 2024Nothing published for this version
-
v3.7.019 Jul 2024Release notes
Open source →- The buildDataForExport method is now protected, making it possible to create custom Data Transformer methods for the DTOs.
Release notes
Open source →- The
buildDataForExportmethod is now protected, making it possible to create custom Data Transformer methods for the DTOs.
-
v3.6.115 Jul 2024Nothing published for this version
-
v3.6.012 Jul 2024Release notes
Open source →- The $data property resets to an empty array after the DTO is initialized.
Release notes
Open source →- The
$dataproperty resets to an empty array after the DTO is initialized.
-
v3.5.228 May 2024Nothing published for this version
-
v3.5.108 Apr 2024Nothing published for this version
-
v3.5.013 Mar 2024 -
v3.4.005 Feb 2024Release notes
Open source →-
Added the dto:stubs command to publish the DTO stubs to be customized.
-
Fixed issue with file validation.
Release notes
Open source →- Added the
dto:stubscommand to publish the DTO stubs to be customized. - Fixed issue with file validation.
-
-
v3.3.016 Oct 2023Release notes
Open source →- Added the after method to ValidatedDTO to be able to use the After Hook when validating data.
Release notes
Open source →- Added the
aftermethod toValidatedDTOto be able to use the After Hook when validating data.
-
v3.2.116 Oct 2023Nothing published for this version
-
v3.2.010 Oct 2023 -
v3.1.206 Oct 2023Nothing published for this version
-
v3.1.106 Oct 2023Nothing published for this version
-
v3.1.004 Oct 2023Release notes
Open source →-
Added the Rules attribute to define custom validation rules for DTO properties.
-
Added the DefaultValue attribute to define default values for DTO properties.
-
Added the Map attribute to define the custom mapping for DTO properties.
-
Added the EmptyCasts trait to be used by DTOs that don't have any casts.
-
Added the EmptyRules trait to be used by DTOs that don't have any validation rules or that are using the Rules attribute for validation.
-
Added the EmptyDefaults trait to be used by DTOs that don't have any default values or that are using the DefaultValue attribute for default values.
Release notes
Open source →- Added the
Rulesattribute to define custom validation rules for DTO properties. - Added the
DefaultValueattribute to define default values for DTO properties. - Added the
Mapattribute to define the custom mapping for DTO properties. - Added the
EmptyCaststrait to be used by DTOs that don't have any casts. - Added the
EmptyRulestrait to be used by DTOs that don't have any validation rules or that are using theRulesattribute for validation. - Added the
EmptyDefaultstrait to be used by DTOs that don't have any default values or that are using theDefaultValueattribute for default values.
-
-
v3.0.118 Sep 2023Nothing published for this version
-
v3.0.006 Sep 2023Release notes
Open source →-
Use DTO as it was a Form Request
-
Ability to customize the path/namespace of the generated DTOs.
-
DTO classes generated with the make command are slimmer.
-
Ability to cast array items when using the ArrayCast .
-
New EnumCast for casting values to Enums. Work with UnitEnum and BackedEnum .
-
mapBeforeValidation() was renamed to mapData() .
-
mapBeforeExport() was renamed to mapToTransform() .
-
->toJson() method now returns a JSON string without any formatting. Use ->toPrettyJson() instead.
Release notes
Open source →- Use DTO as it was a Form Request
- Ability to customize the path/namespace of the generated DTOs.
- DTO classes generated with the make command are slimmer.
- Ability to cast array items when using the
ArrayCast. - New
EnumCastfor casting values to Enums. Work withUnitEnumandBackedEnum. mapBeforeValidation()was renamed tomapData().mapBeforeExport()was renamed tomapToTransform().->toJson()method now returns a JSON string without any formatting. Use->toPrettyJson()instead.
-
-
v2.11.111 Jul 2023Nothing published for this version
-
v2.11.030 May 2023Nothing published for this version
-
v2.10.022 May 2023Nothing published for this version
-
v2.9.017 May 2023Nothing published for this version
-
v2.8.015 May 2023Nothing published for this version
-
v2.7.008 May 2023Nothing published for this version
-
v2.6.014 Apr 2023Nothing published for this version
-
v2.5.105 Apr 2023Nothing published for this version
-
v2.5.003 Apr 2023Nothing published for this version
-
v2.4.028 Mar 2023Nothing published for this version
-
v2.3.022 Mar 2023Nothing published for this version
-
v2.2.507 Feb 2023Nothing published for this version
-
v2.2.419 Jan 2023Nothing published for this version
-
v2.2.302 Jan 2023Nothing published for this version
-
v2.2.227 Dec 2022Nothing published for this version
-
v2.2.127 Dec 2022Nothing published for this version
-
v2.2.019 Dec 2022Nothing published for this version
-
v2.1.015 Dec 2022Nothing published for this version
-
v2.0.014 Dec 2022Nothing published for this version
-
v1.1.212 Dec 2022Nothing published for this version
-
v1.1.111 Dec 2022Nothing published for this version
-
v1.1.010 Dec 2022Nothing published for this version
-
v1.0.109 Dec 2022Nothing published for this version
-
v1.0.009 Dec 2022Nothing published for this version