Download the PHP package pickmap/response without Composer
On this page you can find all versions of the php package pickmap/response. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package response
About Responder
Most of the time we need the same output structure for all REST FULL API responses.
In this package, based on the rules of the link below (jsend), you can send your response in a standard way https://github.com/omniti-labs/jsend
Type | Description | Required Keys | Optional Keys |
---|---|---|---|
success | All went well, and (usually) some data was returned. | status, data | |
fail | There was a problem with the data submitted, or some pre-condition of the API call wasn't satisfied | status, data | |
error | An error occurred in processing the request, i.e. an exception was thrown | status, message | code, data |
How to use this package ?
step #1
Install the package with the following command
step #3
Go to this path in your Laravel project app/Exceptions/Handler.php and put this codes
step #3
now you can use like this
All versions of response with dependencies
PHP Build Version
Package Version
Requires
laravel/framework Version
8.*|9.*|10.*
The package pickmap/response contains the following files
Loading the files please wait ....