Skip to content

ThunderID/jsend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages