Download the PHP package kolirt/laravel-api-response without Composer
On this page you can find all versions of the php package kolirt/laravel-api-response. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kolirt/laravel-api-response
More information about kolirt/laravel-api-response
Files in kolirt/laravel-api-response
Download kolirt/laravel-api-response
More information about kolirt/laravel-api-response
Files in kolirt/laravel-api-response
Vendor kolirt
Package laravel-api-response
Short Description The package will help to generate json answers.
License MIT
Homepage https://github.com/kolirt/laravel-api-response
Package laravel-api-response
Short Description The package will help to generate json answers.
License MIT
Homepage https://github.com/kolirt/laravel-api-response
Please rate this library. Is it a good library?
Informations about the package laravel-api-response
Laravel Api Response
Unification of API responses for Laravel projects inspired by telegram api responses
Structure
- Getting started
- Requirements
- Installation
- Usage
- Example
- Error response
- Success response
- Methods
- error
- success
- setCode
- setDescription
- setErrors
- abort
- cookie
- setData
- render
- Example
- FAQ
- License
- Other packages

Getting started
Requirements
- PHP >= 8.1
- Laravel >= 10
For lesser versions of Laravel or PHP, use the v2
Installation
Usage
Example
Error response
Success response
Methods
error
Mark response as error
success
Mark response as success
setCode
Set specific code to response. Available codes
setDescription
Add description to response
setErrors
Add errors to response
abort
Abort response with error
cookie
Add cookie to response
setData
Add data to response
render
Render response
FAQ
Check closed issues to get answers for most asked questions
License
MIT
Other packages
Check out my other packages on my GitHub profile
All versions of laravel-api-response with dependencies
PHP Build Version
Package Version
The package kolirt/laravel-api-response contains the following files
Loading the files please wait ....