phramework/jsonapi doc
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • Phramework
    • JSONAPI
      • Controller
        • POST
      • Model
      • Viewers

Classes

  • JSONAPI

Class JSONAPI

Implementation of IViewer for JSON API

Also sends Content-Type: application/vnd.api+json;charset=utf-8 header as response

JSONP Support is disabled

Phramework\JSONAPI\Viewers\JSONAPI implements Phramework\Viewers\IViewer
Namespace: Phramework\JSONAPI\Viewers
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Link: http://jsonapi.org/
Sinse: 1.0.0
Located at Viewers/JSONAPI.php

Methods summary

public static boolean
# header( )

Send JSON API headers

Send JSON API headers

Returns

boolean
Returns false if headers are already sent, else true

See

header https://secure.php.net/manual/en/function.header.php
public
# view( object|array $parameters )

Send output

Send output

Parameters

$parameters
Output to display as json
phramework/jsonapi doc API documentation generated by ApiGen