2017 © Pedro Peláez
 

project dodo-entity-serializer

Dodo is back and he's very angry (and hungry.. huh)! With him, you can now convert some entity-like objects into json and some json into entity-like object! And he automatically manages objects array and array-like json. So cute :)

image

dimitrilahaye/dodo-entity-serializer

Dodo is back and he's very angry (and hungry.. huh)! With him, you can now convert some entity-like objects into json and some json into entity-like object! And he automatically manages objects array and array-like json. So cute :)

  • Wednesday, May 25, 2016
  • by dimitrilahaye
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

 Dodo Entity Serializer Library

Dodo is back and he's very angry (and hungry.. huh)! With him, you can now convert some entity-like objects into json and some json into entity-like object! And he automatically manages objects array and array-like json. So cute :), (*1)


Table of Contents

EntitySerializer

General class for DodoEntitySerializer. Provides all the methods to :, (*2)

  • Convert Entity Object or Array of Entities Objects to JSON
  • Convert JSON to Entity Object or array of Entities Objects JSON
  • Full name: \DodoPhpLab\DodoEntitySerializer\Classes\EntitySerializer

getInstance

EntitySerializer::getInstance(  )
  • This method is static.

jsonToObject

Returns an object from a json and the class's namespace of the object we want to return., (*3)

EntitySerializer::jsonToObject( string $classNamespace, string $json ): mixed[]

Parameters:, (*4)

Parameter Type Description
$classNamespace string the class name with namespace.
$json string the json to transform in object.

Return Value:, (*5)

array of Entity-type objects or one Entity-type object., (*6)


objectToJson

Returns a string formatted json from an object and his class's namespace., (*7)

EntitySerializer::objectToJson( string $classNamespace, mixed[] $object ): string

Parameters:, (*8)

Parameter Type Description
$classNamespace string the class name with namespace.
$object mixed[] the object to transform into json.

Return Value:, (*9)

the string formatted json representation of the $object passed in argument., (*10)


 Coming Soon

  • Handle add... methods (there : addSubscriber with User object in argument), (*11)

  • See how to manage null values, (*12)

  • Manage exceptions, (*13)

  • Write some things into README, (*14)


This document was automatically generated from source code comments on 2016-05-25 using phpDocumentor and cvuorinen/phpdoc-markdown-public, (*15)

The Versions

25/05 2016

dev-master

9999999-dev https://github.com/dimitrilahaye/Dodo-Entity-Serializer

Dodo is back and he's very angry (and hungry.. huh)! With him, you can now convert some entity-like objects into json and some json into entity-like object! And he automatically manages objects array and array-like json. So cute :)

  Sources   Download

proprietary

The Requires

  • php >=5.4

 

The Development Requires

by Dimitri Lahaye

json serializer entity dodo

24/05 2016

0.1.1-alpha

0.1.1.0-alpha https://github.com/dimitrilahaye/Dodo-Entity-Serializer

Dodo is back and he's very angry (and hungry.. huh)! With him, you can now convert some entity-like objects into json and some json into entity-like object! And he automatically manages objects array and array-like json. So cute :)

  Sources   Download

proprietary

The Requires

  • php >=5.4

 

The Development Requires

by Dimitri Lahaye

json serializer entity dodo

24/05 2016

0.1.0-alpha

0.1.0.0-alpha https://github.com/dimitrilahaye/Dodo-Entity-Serializer

Dodo is back and he's very angry (and hungry.. huh)! With him, you can now convert some entity-like objects into json and some json into entity-like object! And he automatically manage objects array and array-like json. So cute :)

  Sources   Download

proprietary

The Requires

  • php >=5.4

 

The Development Requires

by Dimitri Lahaye

json serializer entity dodo