Download the PHP package tattran22/response without Composer
On this page you can find all versions of the php package tattran22/response. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tattran22/response
More information about tattran22/response
Files in tattran22/response
Download tattran22/response
More information about tattran22/response
Files in tattran22/response
Vendor tattran22
Package response
Short Description Easy API Response Transformation for Laravel
License
Package response
Short Description Easy API Response Transformation for Laravel
License
Please rate this library. Is it a good library?
Informations about the package response
TatTran22/Response: Easy API Response Transformation for Laravel
This Laravel package simplifies handling API responses using the Fractal library. It lets you easily:
- Transform data: Convert raw data into structured responses.
- Include relationships: Add related data to your responses without separate requests.
- Handle pagination: Automatically add pagination links and metadata.
Installation
Just run this command in your terminal:
Usage
- Prepare your data: Use Eloquent models, arrays, or any suitable format.
- Create a transformer: Define how to transform your data using a
ResponseTransformer
class. -
Transform your data: Call
transformData
with your data and transformer. - (Optional) Include relationships: Add
include
parameters to your API requests (e.g.,?include=relationship
).
Features
- Easy transformation: Define transformations in clear, readable code.
- Includes parsing: Automatically handle
include
query parameters. - Pagination support: Add pagination links and metadata seamlessly.
- Set includes programmatically: Control included relationships in code.
Open Source & Credits
This package is free to use under the MIT license and developed by Tat Tran.
All versions of response with dependencies
PHP Build Version
Package Version
The package tattran22/response contains the following files
Loading the files please wait ....