2017 © Pedro Peláez
 

library api-response

H4D API response

image

h4d/api-response

H4D API response

  • Sunday, April 1, 2018
  • by retrinko
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

¿Qué es esto?

Clases básicas para a instanciación de respuestas tipo API., (*1)

Instalación vía composer:

Esta biblioteca puede instalarse vía composer añadiendo esto a tu fichero composer.json:, (*2)

"require": { "h4d/api-response": "^1.0" }, (*3)

Uso directo

$resp = new ApiResponse(10000, ['version'=>'1.0'], 'Success!');

Uso en cliente

// Array proveniente de descodificar un JSON de respuesta.
$dataArray = ['code'=>10000, 'data'=> ['version'=>'v1.0'], 'message'=>'Success!'];
// Obtengo el objeto de respuesta a partir de la factoría.
$resp = ApiResponseFactory::i()->fromArray($dataArray);
if ($resp->isOK())
{
    // Hago cosas...
}

The Versions

01/04 2018

dev-master

9999999-dev

H4D API response

  Sources   Download

proprietary

The Requires

  • php >=5.5.9

 

The Development Requires

by Miguel Graña

api response

24/11 2016

v1.0.8

1.0.8.0

H4D API response

  Sources   Download

proprietary

The Requires

  • php >=5.5.9

 

The Development Requires

by Miguel Graña

api response

23/06 2016

v1.0.7

1.0.7.0

H4D API response

  Sources   Download

proprietary

The Requires

  • php >=5.5.9

 

by Miguel Graña

api response

16/06 2016

v1.0.6

1.0.6.0

H4D API response

  Sources   Download

proprietary

The Requires

  • php >=5.5.9

 

by Miguel Graña

api response

28/11 2015

v1.0.5

1.0.5.0

H4D API response

  Sources   Download

proprietary

The Requires

  • php >=5.5.9

 

by Miguel Graña

api response

26/11 2015

v1.0.4

1.0.4.0

H4D API response

  Sources   Download

proprietary

The Requires

  • php >=5.5.9

 

by Miguel Graña

api response

21/11 2015

v1.0.3

1.0.3.0

H4D API response

  Sources   Download

proprietary

The Requires

  • php >=5.5.9

 

by Miguel Graña

api response

21/11 2015

v1.0.2

1.0.2.0

H4D API response

  Sources   Download

proprietary

The Requires

  • php >=5.5.9

 

by Miguel Graña

api response

21/11 2015

v1.0.1

1.0.1.0

H4D API response

  Sources   Download

proprietary

The Requires

  • php >=5.5.9

 

by Miguel Graña

api response

20/11 2015

v1.0.0

1.0.0.0

H4D API response

  Sources   Download

proprietary

The Requires

  • php >=5.5.9

 

by Miguel Graña

api response