Skip to content

Data Transfer Objects with validation for Laravel applications

License

Notifications You must be signed in to change notification settings

WendellAdriel/laravel-validated-dto

Folders and files

NameName
Last commit message
Last commit date
Feb 26, 2025
Sep 1, 2023
Sep 4, 2023
Dec 9, 2022
Feb 26, 2025
Mar 3, 2025
Sep 4, 2023
Feb 8, 2023
Jul 12, 2024
Feb 8, 2023
Dec 9, 2022
Feb 8, 2023
Feb 26, 2025
Feb 26, 2025
Dec 11, 2022
Oct 4, 2023
May 20, 2023

Repository files navigation

Validated DTO for Laravel

Validated DTO for Laravel

Data Transfer Objects with validation for Laravel applications

Packagist PHP from Packagist Laravel Version GitHub Workflow Status (main)

Data Transfer Objects (DTOs) are objects that are used to transfer data between systems. DTOs are typically used in applications to provide a simple, consistent format for transferring data between different parts of the application, such as between the user interface and the business logic.

This package provides a base DTO Class that can validate the data when creating a DTO. But why should we do this instead of using the standard Request validation?

Imagine that now you want to do the same action that you do in an endpoint on a CLI command per example. If your validation is linked to the Request you'll have to implement the same validation again.

With this package you define the validation once and can reuse it where you need, making your application more maintainable and decoupled.

Documentation

Docs Button DocsRepo Button

Installation

composer require wendelladriel/laravel-validated-dto

Credits

Contributing

Check the Contributing Guide.