JOM - JSON Object Mapper

JOM is a powerful object mapper which maps JSON Data into PHP objects.

Installation

You can install this library using composer

$ composer require mintware-de/json-object-mapper

Usage

JOM is totally easy to use.
Simply put the annotation @MintWare\JOM\JsonField(name=, type=) to your class properties.
name is the name of the json property, type is the field type which can also be an mapped class.

For mapping you have to create an ObjectMapper-Object and call the mapJson Method