Remi's RPM repository - Packages

Blog | Forum | Repository | Wizard

php-netresearch-jsonmapper - Map nested JSON structures onto PHP classes

OSL 3.0
Remi's RPM repository <>
Takes data retrieved from a JSON web service and converts them into nested
object and arrays - using your own model classes.

Starting from a base object, it maps JSON data on class properties, converting
them into the correct simple types or objects.

It's a bit like the native SOAP parameter mapping PHP's SoapClient gives you,
but for JSON. It does not rely on any schema, only your PHP class definitions.

Type detection works by parsing @var docblock annotations of class properties,
as well as type hints in setter methods.

You do not have to modify your model classes by adding JSON specific code;
it works automatically by parsing already-existing docblocks.

Autoloader: /usr/share/php/netresearch/jsonmapper/autoload.php


php-netresearch-jsonmapper-4.0.0-1.fc33.remi.noarch [25 KiB] Changelog by Remi Collet (2021-06-28):
- update to 4.0.0
- raise dependency on PHP 7.1
- switch to phpunit9
php-netresearch-jsonmapper-3.1.1-1.fc33.remi.noarch [25 KiB] Changelog by Remi Collet (2020-11-03):
- update to 3.1.1