2017 © Pedro Peláez
 

library multi-api

Multiple response formats

image

spitoglou/multi-api

Multiple response formats

  • Wednesday, April 13, 2016
  • by spitoglou
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Laravel 5.2 Multi Api Package, (*1)

Build Status Latest Stable Version Latest Unstable Version Total Downloads License, (*2)

spitoglou/multi-api

This package was initially developed for personal (and colleague) use., (*3)

It provides the necessary functionality to produce api responses in JSON, XML or HTML (simple table) formats. The api consumer determines the format of the response he/she needs by setting the "Accept" header of the request accordingly ("application/json", "application/custom+xml","application/text" respectively)., (*4)

Install

Via Composer, (*5)

``` bash $ composer require spitoglou/multi-api, (*6)


## Usage #### Normal Response ``` php $array = [["name"=>"Stavros", "surname"=>"Pitoglou],["name"=>"John", "surname"=>"Doe"]; $sender = new Spitoglou\MultiApi\Sender($array); $sender->finalSend();

Error

php $array = ["errorCode"=>"654987", "errorDescription"=>"Some Exotic Error] $sender = new Spitoglou\MultiApi\Sender($array); $sender->sendError(500);, (*7)

Change log

Please see CHANGELOG for more information what has changed recently., (*8)

Testing

Have Not Added Tests yet..., (*9)

Security

If you discover any security related issues, please email s.pitoglou@csl.gr instead of using the issue tracker., (*10)

Credits

  • [Stavros Pitoglou][link-author]

License

The MIT License (MIT). Please see License File for more information., (*11)

The Versions

13/04 2016

dev-master

9999999-dev

Multiple response formats

  Sources   Download

MIT

The Requires

 

by Stavros Pitoglou

laravel api json xml response

11/04 2016

0.2

0.2.0.0

Multiple response formats

  Sources   Download

MIT

The Requires

 

by Stavros Pitoglou

10/04 2016

0.1.1alpha

0.1.1.0-alpha

Multiple response formats

  Sources   Download

MIT

The Requires

 

by Stavros Pitoglou

10/04 2016

0.1.0alpha

0.1.0.0-alpha

Multiple response formats

  Sources   Download

MIT

The Requires

 

by Stavros Pitoglou