burxon / api-response-dto
A simple DTO class for consistent API responses in Laravel
v1.0.0
2025-04-09 12:55 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^8.0|^9.0|^10.0|^11.0
README
A simple Laravel-compatible DTO (Data Transfer Object) to standardize and simplify JSON API responses.
Installation
To set up the Composer package, run the following commands:
composer require burxon/api-response-dto
Creating a new Custom ApiResponseDTO
<?php php artisan make:api-response-dto YourCustomResponseDTOName