Download the PHP package egeatech/laravel-responses without Composer
On this page you can find all versions of the php package egeatech/laravel-responses. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download egeatech/laravel-responses
More information about egeatech/laravel-responses
Files in egeatech/laravel-responses
Package laravel-responses
Short Description A simple package to better handle application responses.
License MIT
Homepage https://github.com/EgeatechSRL/laravel-responses
Informations about the package laravel-responses
Laravel Responses
A package to provide some standardized response classes.
Installation
This package supports Laravel 6, 7, 8 and 9 but requires at least PHP 8.0. PHP 7.4 is supported up to version 2.1.1.
Via Composer
Usage
Simply return a new instance of either ApiResponse
or PaginatedApiResponse
from your controller method.
Both classes share a similar signature for their constructors:
Here is the constructor for ApiResponse
:
And here the one for PaginatedApiResponse
class:
An example usage for the ApiResponse
class could be the following:
For the other class, its usage is the same as long as you provide a LenghtAwarePaginator
instance as first parameter.
Change log
Please see the CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
- Egea Tecnologie Informatiche
- Enrico Bagattin
- Marco Guidolin
License
The software is licensed under MIT. Please see the LICENSE file for more information.
All versions of laravel-responses with dependencies
illuminate/support Version ^6|^7|^8|^9|^10
egeatech/laravel-exceptions Version ^3.0.1