PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
  Info   View files Documentation   View files View files (41)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2018-04-27 (4 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 142 All time: 8,661 This week: 313Up
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
  Performance   Level  
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

Details

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  
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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:142
This week:0
All time:8,661
This week:313Up