Php objects for working with hypermedia Collection+JSON (http://amundsen.com/media-types/)

Installs: 32

Dependents: 0

Suggesters: 0

Stars: 2

Watchers: 3

Forks: 0

Open Issues: 0

0.8.5 2015-12-03 04:01 UTC


Creating objects from JSON strings

The key method will be Object::import, which converts JSON strings into the appropriate object based on it's format.

You can also create a Collection object from json using Collection->setContent().

Converting objects to JSON

Cast any object to string to get it's JSON equivalent.

Converting from Collection+JSON to JSON

Take a look at the class CollectionJsonToJson.