thunderid / jsend
JSend for laravel
dev-master
2015-07-23 05:22 UTC
Requires
- php: >5.3.0
This package is not auto-updated.
Last update: 2025-04-26 19:29:23 UTC
README
This package is to help creating Json API Response. It follows the JSend standards (if you are not familiar with jsend, please refer to http://labs.omniti.com/labs/jsend)
Installation
Add this code to composer.json:
"thunderid/jsend": "dev-master"
and run
composer update
Usage
$jsend = new \ThunderID\jsend\jsend($status = "success|error|fail", $array); echo $jsend->toJson();