thunderid/jsend

JSend for laravel

Maintainers

Package info

github.com/ThunderID/jsend

pkg:composer/thunderid/jsend

Statistics

Installs: 34

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

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

This package is not auto-updated.

Last update: 2026-03-14 23:27:17 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();