2017 © Pedro Peláez
 

library slim-json-api-helper

Slim3 JSON API Request & Response Helper inspired by jsonapi.org

image

cristianp6/slim-json-api-helper

Slim3 JSON API Request & Response Helper inspired by jsonapi.org

  • Wednesday, January 27, 2016
  • by cristianp6
  • Repository
  • 1 Watchers
  • 1 Stars
  • 75 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 3 % Grown

The README.md

slim-json-api-helper

Latest Stable Version Composer Downloads Build Status License, (*1)

Requirements

  • PHP >= 5.5

Usage


use Slim\Http\Request as Request; use JsonApiHelper\Renderer; $app = new \Slim\App($settings); $container = $app->getContainer(); // register the json response and error handlers $jsonApiHelper = new JsonApiHelper\JsonApiHelper($app->getContainer()); $jsonApiHelper->registerResponseResult(); $jsonApiHelper->registerErrorHandlers(); $this->post('/users', function (Request $request, Response $response, $args) { $user_id = $request->getParam('user_id'); $this->result->data = [ 'user_id' => $user_id ]; $response = $this->result->render($response, 200); return $response; }); }

The Versions

27/01 2016

dev-master

9999999-dev https://github.com/cristianp6/slim-json-api-helper

Slim3 JSON API Request & Response Helper inspired by jsonapi.org

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api json slim

27/01 2016

2.0.1

2.0.1.0 https://github.com/cristianp6/slim-json-api-helper

Slim3 JSON API Request & Response Helper inspired by jsonapi.org

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api json slim

27/01 2016

2.0.0

2.0.0.0 https://github.com/cristianp6/slim-json-api-helper

Slim3 JSON API Request & Response Helper inspired by jsonapi.org

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api json slim

11/01 2016

1.0.0

1.0.0.0 https://github.com/aporat/slim-json-helpers

Slim3 JSON Request & Response Helpers

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

json slim