| Package Data | |
|---|---|
| Maintainer Username: | erickmo |
| Maintainer Contact: | erick.mo@vortege.com (erickmo) |
| Package Create Date: | 2015-04-01 |
| Package Last Update: | 2015-07-23 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-12-09 15:01:35 |
| Package Statistics | |
|---|---|
| Total Downloads: | 34 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
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)
Add this code to composer.json:
"thunderid/jsend": "dev-master"
and run
composer update
$jsend = new \ThunderID\jsend\jsend($status = "success|error|fail", $array);
echo $jsend->toJson();