burxon/api-response-dto

A simple DTO class for consistent API responses in Laravel

v1.0.0 2025-04-09 12:55 UTC

This package is auto-updated.

Last update: 2025-09-09 14:02:02 UTC


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