Download the PHP package witify/laravel-json-response without Composer
On this page you can find all versions of the php package witify/laravel-json-response. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download witify/laravel-json-response
More information about witify/laravel-json-response
Files in witify/laravel-json-response
Download witify/laravel-json-response
More information about witify/laravel-json-response
Files in witify/laravel-json-response
Vendor witify
Package laravel-json-response
Short Description Quickly make JSON responses in Laravel
License MIT
Homepage https://github.com/Witify/laravel-json-response
Package laravel-json-response
Short Description Quickly make JSON responses in Laravel
License MIT
Homepage https://github.com/Witify/laravel-json-response
Keywords laravelJSON responses
Please rate this library. Is it a good library?
Informations about the package laravel-json-response
Quick JSON reponses in Laravel
Installation
You can install the package via composer:
Usage
Add it to your controller:
Available methods
Method | Description |
---|---|
setStatusCode(int $statusCode) | Set the status code of the response |
getStatusCode(int $statusCode) | Get the status code of the response |
response($data, $headers = []) | Create a json response |
success($message = "", $data = null) | Create a successful json response |
error($message = "", $data = null) | Create a failed json response |
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- François Lévesque
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-json-response with dependencies
PHP Build Version
Package Version
The package witify/laravel-json-response contains the following files
Loading the files please wait ....