PHPackages                             niko9911/json-to-entity - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. niko9911/json-to-entity

ActiveLibrary

niko9911/json-to-entity
=======================

Map JSON into entity.

1.0.2(7y ago)3851MITPHPPHP ^7.2

Since Mar 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/NikoGrano/php-json-to-entity)[ Packagist](https://packagist.org/packages/niko9911/json-to-entity)[ RSS](/packages/niko9911-json-to-entity/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

JSON to Entity
==============

[](#json-to-entity)

[![pipeline status](https://camo.githubusercontent.com/8fbe24efe6d50203fb28d600affe24167554af385d0c449cff14a1ef0f2306e5/68747470733a2f2f6769746c61622e636f6d2f6e696b6f393931312f7068702d6a736f6e2d746f2d656e746974792f6261646765732f6d61737465722f706970656c696e652e737667)](https://gitlab.com/niko9911/php-json-to-entity/commits/master)[![coverage report](https://camo.githubusercontent.com/5647fe7eb01e6a7a7367f30ede5471d77c48d3dc42cc0a430e06f49435a91250/68747470733a2f2f6769746c61622e636f6d2f6e696b6f393931312f7068702d6a736f6e2d746f2d656e746974792f6261646765732f6d61737465722f636f7665726167652e737667)](https://gitlab.com/niko9911/php-json-to-entity/commits/master)

Map json into entity. This allows you to easily validate payload json and map it automatically into entity class. This class can be for example ORM class, when you can directly save it into the DB.

This is pretty nice, if you're lazy and need just to develop fast, but if you need high performance application, please map json and validate json manually. Comes with performance strike, but saves time.

Install
-------

[](#install)

Via [composer](http://getcomposer.org):

```
composer require niko9911/json-to-entity
```

Usage
-----

[](#usage)

```
