2017 © Pedro Peláez
 

library responses

Standardise success and failure responses to both server and client side processing

image

sinclairt/responses

Standardise success and failure responses to both server and client side processing

  • Wednesday, March 29, 2017
  • by sinclairt
  • Repository
  • 1 Watchers
  • 0 Stars
  • 34 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 14 Versions
  • 0 % Grown

The README.md

Sinclair Responses

The responses package give you standardised responses for all your calls whether they are server side or client side, (*1)

Installation

composer require sinclairt/responses, (*2)

Register the service provider: Sinclair\Responses\SinclairResponsesServiceProvider, (*3)

composer dump-autoload, (*4)

Usage

You can use the controller responses doStore and doUpdate to standardise your actions for a resourceful controller (store and update respectively)., (*5)

The SinclairResponse class takes care of organising your content and returning it appropriate either as JSON or a as a redirect with a message in the session., (*6)

The methods are SinclairResponse::success() and SinclairResponse::failure() passing in any arguments you want to return back in the response., (*7)

The Versions

29/03 2017

dev-master

9999999-dev

Standardise success and failure responses to both server and client side processing

  Sources   Download

MIT

The Requires

 

by Tom Sinclair

29/03 2017

1.0.13

1.0.13.0

Standardise success and failure responses to both server and client side processing

  Sources   Download

MIT

The Requires

 

by Tom Sinclair

08/07 2016

1.0.12

1.0.12.0

Standardise success and failure responses to both server and client side processing

  Sources   Download

MIT

The Requires

 

by Tom Sinclair

17/06 2016

1.0.11

1.0.11.0

Standardise success and failure responses to both server and client side processing

  Sources   Download

MIT

The Requires

 

by Tom Sinclair

17/06 2016

1.0.10

1.0.10.0

Standardise success and failure responses to both server and client side processing

  Sources   Download

MIT

The Requires

 

by Tom Sinclair

10/05 2016

1.0.9

1.0.9.0

Standardise success and failure responses to both server and client side processing

  Sources   Download

MIT

The Requires

 

by Tom Sinclair

10/05 2016

1.0.8

1.0.8.0

Standardise success and failure responses to both server and client side processing

  Sources   Download

MIT

The Requires

 

by Tom Sinclair

29/04 2016

1.0.7

1.0.7.0

Standardise success and failure responses to both server and client side processing

  Sources   Download

MIT

The Requires

 

by Tom Sinclair

02/03 2016

1.0.6

1.0.6.0

Standardise success and failure responses to both server and client side processing

  Sources   Download

MIT

The Requires

 

by Tom Sinclair

02/03 2016

1.0.5

1.0.5.0

Standardise success and failure responses to both server and client side processing

  Sources   Download

MIT

The Requires

 

by Tom Sinclair

19/01 2016

1.0.3

1.0.3.0

Standardise success and failure responses to both server and client side processing

  Sources   Download

MIT

The Requires

 

by Tom Sinclair
by Mat Marlow

19/01 2016

1.0.2

1.0.2.0

Standardise success and failure responses to both server and client side processing

  Sources   Download

MIT

The Requires

 

by Tom Sinclair
by Mat Marlow

18/01 2016

1.0.1

1.0.1.0

Standardise success and failure responses to both server and client side processing

  Sources   Download

MIT

The Requires

 

by Tom Sinclair
by Mat Marlow

12/01 2016

1.0.0

1.0.0.0

Standardise success and failure responses to both server and client side processing

  Sources   Download

MIT

The Requires

 

by Tom Sinclair
by Mat Marlow