2017 © Pedro Peláez
 

library jsonapi

A framework agnostic PHP library that implements some of the json:api specification.

image

michaeldrennen/jsonapi

A framework agnostic PHP library that implements some of the json:api specification.

  • Friday, July 6, 2018
  • by michaeldrennen
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 43 % Grown

The README.md

JSONAPI

GitHub Build Status Codecov GitHub issues Packagist Beerpay, (*1)

This is a PHP library for those wanting to build an API and return structured data to the requesting client., (*2)

// This $user is the object we want to return to the client requesting the User data.
$user  = new User( 74, "Mike", TRUE );

// Create the response object, set the $user as the data you want to return, and 
// specify the Transformer you want to use to munge the User data. 
$array = \MichaelDrennen\JSONAPI\Response::create()
                                         ->setData( $user )
                                         ->transformWith( new UserTransformer() )
                                         ->toArray();

The Versions

06/07 2018

dev-master

9999999-dev

A framework agnostic PHP library that implements some of the json:api specification.

  Sources   Download

The Requires

 

The Development Requires

by Michael Drennen