mapper-php
mapper-php copied to clipboard
Map, unmap and validate your models from/to json, xml, arrays and stdClass.
What I mean is the following: 1. Suppose I have a scenario with a Model called `Data` with these two attributes: `serviceId` and `values` 2. I need first check if...
Example: ``` $model->toXml('utf-8'); ``` Result: ``` СапасанМосква ``` Сurrently the result: ``` $model->toXml(); ``` ``` СапасанМосква ``` I would have done it myself, but I can not find where to...
It would have been nice to have an option to map data into collections, for example ArrayObject, instead of arrays. I propose a new annotation; ``` @destination ArrayObject ```