PHP Classes

JSON Object Mapper: Create objects of classes mapped from JSON strings

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 153 All time: 9,054 This week: 455Up
Version License PHP version Categories
json-object-mapper 1.2.0Custom (specified...5.6PHP 5, Data types
Description 

Author

This class create objects of classes mapped from JSON strings.

It can take a given class and extracts the annotations to determine the type of its variables.

The class can parse a JSON string and extracts the values to store in the class variables according to the types defined in the annotations.

The class can also retrieve nested objects to be stored in the class variables declared as such.

Innovation Award
PHP Programming Innovation award winner
September 2017
Winner


Prize: One big elePHPant Plush Mascott
ORMs (Object Relational Mapping) are tools or libraries of code that are used to store and retrieve objects in databases or other types of storage containers.

To do their job, ORMs need to retrieve information from somewhere to determine how to store or retrieve the objects in the container.

This package provides means to retrieve mapping information from annotation comments that have that information defined as JSON data structure strings.

Manuel Lemos
Picture of Julian Finkler
  Performance   Level  
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

 

Documentation

Travis Packagist GitHub license Packagist

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

Check out the documentation

Testing

$ phpunit

Contribute

Feel free to fork, contribute and create pull requests


  Files folder image Files (41)  
File Role Description
Files folder imagedoc (7 files)
Files folder imagesrc (4 files, 1 directory)
Files folder imagetests (3 files, 3 directories)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file CHANGELOG.md Doc. Documentation
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:153
This week:0
All time:9,054
This week:455Up