Download the PHP package tzookb/api-responder without Composer
On this page you can find all versions of the php package tzookb/api-responder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tzookb/api-responder
More information about tzookb/api-responder
Files in tzookb/api-responder
Download tzookb/api-responder
More information about tzookb/api-responder
Files in tzookb/api-responder
Vendor tzookb
Package api-responder
Short Description laravel api response helper
License MIT
Homepage https://github.com/tzookb/api-responder
Package api-responder
Short Description laravel api response helper
License MIT
Homepage https://github.com/tzookb/api-responder
Please rate this library. Is it a good library?
Informations about the package api-responder
Simplifying the Api response
this package was built for easying the return of an api reponse, currently it returns only json, but could easily support xml or whatever...
the use is easy:
return $apiResponder
->setData(['someData'=>1, 'someData2'=>2])
->setMeta(['page'=>1, 'extra'=>'for_info_stuff'])
->setRef(1) //defaults to 1, this is for the general api code, like 0 success, 1 data error, 2 auth error etc
->respond(); //and this returns the "Response" object currently JsonResponse
All versions of api-responder with dependencies
PHP Build Version
Package Version
Requires
illuminate/contracts Version
5.*
The package tzookb/api-responder contains the following files
Loading the files please wait ....