2017 © Pedro Peláez
 

library api-responder

laravel api response helper

image

tzookb/api-responder

laravel api response helper

  • Wednesday, June 24, 2015
  • by tzookb
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Simplifying the Api response

this package was built for easying the return of an api reponse, currently it returns only json, but could easily support xml or whatever..., (*1)

the use is easy:, (*2)

  return $apiResponder
        ->setData(['someData'=>1, 'someData2'=>2])
        ->setMeta(['page'=>1, 'extra'=>'for_info_stuff'])
        ->setRef(1) //defaults to 1, this is for the general api code, like 0 success, 1 data error, 2 auth error etc
        ->respond(); //and this returns the "Response" object currently JsonResponse

The Versions

24/06 2015

dev-master

9999999-dev https://github.com/tzookb/api-responder

laravel api response helper

  Sources   Download

MIT

The Requires

 

by Avatar tzookb

laravel api php

23/06 2015

0.01

0.01.0.0 https://github.com/tzookb/api-responder

laravel api response helper

  Sources   Download

MIT

The Requires

 

by Avatar tzookb

laravel api php