thunderid/jsend

JSend for laravel

dev-master 2015-07-23 05:22 UTC

This package is not auto-updated.

Last update: 2024-09-14 16:13:40 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();