thunderid/jsend

JSend for laravel

Installs: 34

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/thunderid/jsend

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

This package is not auto-updated.

Last update: 2025-10-11 21:33:07 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();