ThunderID / jsend by erickmo

JSend for laravel
34
0
1
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-04-28 15:00:53
Package Statistics
Total Downloads: 34
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

Overview

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();