tyasa81/ezresponse

Template Response Class for standardized response format

Fund package maintenance!
Tony Yasa

v1.0.1 2024-10-01 13:24 UTC

This package is auto-updated.

Last update: 2025-04-29 01:28:09 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Simple Response and Form Request Base Templates to Make all projects consistent.

Installation

You can install the package via composer:

composer require tyasa81/ezresponse

Usage

return new SuccessResponse(data: ["test"=>1]);
return new FailResponse(message: "test", data: ["test"=>1]);
return new TooManyRequestResponse();
return new UnauthorizedResponse();

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.