PHPackages                             chubbyphp/chubbyphp-deserialization-doctrine - 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. [API Development](/categories/api)
4. /
5. chubbyphp/chubbyphp-deserialization-doctrine

Abandoned → [chubbyphp/chubbyphp-deserialization](/?search=chubbyphp%2Fchubbyphp-deserialization)ArchivedLibrary[API Development](/categories/api)

chubbyphp/chubbyphp-deserialization-doctrine
============================================

Chubbyphp Deserialize

4.2.0(1y ago)6166MITPHPPHP ^8.2CI passing

Since Jun 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/chubbyphp/chubbyphp-deserialization)[ Packagist](https://packagist.org/packages/chubbyphp/chubbyphp-deserialization-doctrine)[ RSS](/packages/chubbyphp-chubbyphp-deserialization-doctrine/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (18)Versions (108)Used By (0)

chubbyphp-deserialization
=========================

[](#chubbyphp-deserialization)

[![CI](https://github.com/chubbyphp/chubbyphp-deserialization/actions/workflows/ci.yml/badge.svg)](https://github.com/chubbyphp/chubbyphp-deserialization/actions/workflows/ci.yml)[![Coverage Status](https://camo.githubusercontent.com/e4ea2a824065948bca8b9c29b303d3caebe88507f83b73b8482dc6d5c7c94ace/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6368756262797068702f6368756262797068702d646573657269616c697a6174696f6e2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/chubbyphp/chubbyphp-deserialization?branch=master)[![Mutation testing badge](https://camo.githubusercontent.com/b3f76932a6ba9e0ee14b8be942eed2f1a1d1f37c99970f3d4516fe848a855aa5/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532466368756262797068702532466368756262797068702d646573657269616c697a6174696f6e2532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/chubbyphp/chubbyphp-deserialization/master)[![Latest Stable Version](https://camo.githubusercontent.com/3b15138304a465b85e5a0e1dced91da2a9f8cd88aea0a0fb07738f569f8a48cf/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d646573657269616c697a6174696f6e2f76)](https://packagist.org/packages/chubbyphp/chubbyphp-deserialization)[![Total Downloads](https://camo.githubusercontent.com/d518ce87d9190a7ee510bc4ef2f0dab9673725b363aa3e120b417a657a37c7f5/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d646573657269616c697a6174696f6e2f646f776e6c6f616473)](https://packagist.org/packages/chubbyphp/chubbyphp-deserialization)[![Monthly Downloads](https://camo.githubusercontent.com/aa09328a63a70a71f718e370785218aa92c92d64431ab80a9543315e622cbc24/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d646573657269616c697a6174696f6e2f642f6d6f6e74686c79)](https://packagist.org/packages/chubbyphp/chubbyphp-deserialization)

[![bugs](https://camo.githubusercontent.com/c6efa4c3d1c78c648b85faa5ea7d10bd37b4115e317b771d2904fe01ed6e80cf/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d646573657269616c697a6174696f6e266d65747269633d62756773)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-deserialization)[![code_smells](https://camo.githubusercontent.com/008d98638f17e620e3244df344c159341db027c9aa8a91318bb42c7c494d4ce0/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d646573657269616c697a6174696f6e266d65747269633d636f64655f736d656c6c73)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-deserialization)[![coverage](https://camo.githubusercontent.com/3ed7608a8fc92ceb5e544824e5cf5c384389efc6713edb027c626c5fed51599b/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d646573657269616c697a6174696f6e266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-deserialization)[![duplicated_lines_density](https://camo.githubusercontent.com/2255d0ab505a5ca5c481ea0a326c6f6a7455628326ba2766a7a765909dc513a2/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d646573657269616c697a6174696f6e266d65747269633d6475706c6963617465645f6c696e65735f64656e73697479)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-deserialization)[![ncloc](https://camo.githubusercontent.com/e406016fd67b5831c9837c4fc63ae0eb307c6c91714d3ff64d2c0694bc789aef/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d646573657269616c697a6174696f6e266d65747269633d6e636c6f63)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-deserialization)[![sqale_rating](https://camo.githubusercontent.com/9f813864a29b846ed7045f106785c2a3dd6738b498a83d266b50927dd3c0d6a3/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d646573657269616c697a6174696f6e266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-deserialization)[![alert_status](https://camo.githubusercontent.com/3888f7aaeba79ef3121c370163fd8a6631a01c0a3d6b165d3cdf6bdb195b9d99/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d646573657269616c697a6174696f6e266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-deserialization)[![reliability_rating](https://camo.githubusercontent.com/af473e77464bff37fcb3fae72bb40e8f9349521b19352309d419a7ef9e43e22c/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d646573657269616c697a6174696f6e266d65747269633d72656c696162696c6974795f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-deserialization)[![security_rating](https://camo.githubusercontent.com/7b9e7588ef4cbeb03f2d4c29a1e0845d53e91183774b548309caefe548d7d6c8/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d646573657269616c697a6174696f6e266d65747269633d73656375726974795f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-deserialization)[![sqale_index](https://camo.githubusercontent.com/7f23c1b4aaafd6729cf12f4353364f559f9f97b114ca08a3bf5a335435606e53/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d646573657269616c697a6174696f6e266d65747269633d7371616c655f696e646578)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-deserialization)[![vulnerabilities](https://camo.githubusercontent.com/a130c771af854ebb0f777c3122e2bfffbc64cf2314aa10ca5ae347720fb7256b/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d646573657269616c697a6174696f6e266d65747269633d76756c6e65726162696c6974696573)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-deserialization)

Description
-----------

[](#description)

A simple deserialization.

DEPRECATED: No personal interest anymore. Please take a look to [chubbyphp-parsing](https://github.com/chubbyphp/chubbyphp-parsing) its a different concept. But i believe parsing is the way to go instead of deserialze/validate.

Requirements
------------

[](#requirements)

- php: ^8.2
- chubbyphp/chubbyphp-decode-encode: ^1.2
- psr/http-message: ^1.1|^2.0
- psr/log: ^2.0|^3.0.2

Suggest
-------

[](#suggest)

- chubbyphp/chubbyphp-container: ^2.2
- pimple/pimple: ^3.5
- psr/container: ^2.0.2
- symfony/config: ^5.4.46|^6.4.14|^7.2 (symfony integration)
- symfony/dependency-injection: ^5.4.46|^6.4.14|^7.2 (symfony integration)

Installation
------------

[](#installation)

Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-deserialization](https://packagist.org/packages/chubbyphp/chubbyphp-deserialization).

```
composer require chubbyphp/chubbyphp-deserialization "^4.2"
```

Usage
-----

[](#usage)

### Accessor

[](#accessor)

- [MethodAccessor](doc/Accessor/MethodAccessor.md)
- [PropertyAccessor](doc/Accessor/PropertyAccessor.md)

### Denormalizer

[](#denormalizer)

- [Denormalizer](doc/Denormalizer/Denormalizer.md)

#### Field Denormalizer

[](#field-denormalizer)

- [CallbackFieldDenormalizer](doc/Denormalizer/CallbackFieldDenormalizer.md)
- [DateTimeImmutableFieldDenormalizer](doc/Denormalizer/DateTimeImmutableFieldDenormalizer.md)
- [FieldDenormalizer](doc/Denormalizer/FieldDenormalizer.md)
- [ConvertTypeFieldDenormalizer](doc/Denormalizer/ConvertTypeFieldDenormalizer.md)

##### Relation Field Denormalizer

[](#relation-field-denormalizer)

- [EmbedManyFieldDenormalizer](doc/Denormalizer/Relation/EmbedManyFieldDenormalizer.md)
- [EmbedOneFieldDenormalizer](doc/Denormalizer/Relation/EmbedOneFieldDenormalizer.md)
- [ReferenceManyFieldDenormalizer](doc/Denormalizer/Relation/ReferenceManyFieldDenormalizer.md)
- [ReferenceOneFieldDenormalizer](doc/Denormalizer/Relation/ReferenceOneFieldDenormalizer.md)

#### Denormalizer Context

[](#denormalizer-context)

- [DenormalizerContext](doc/Denormalizer/DenormalizerContext.md)
- [DenormalizerContextBuilder](doc/Denormalizer/DenormalizerContextBuilder.md)

### DenormalizerObjectMappingRegistry

[](#denormalizerobjectmappingregistry)

- [DenormalizerObjectMappingRegistry](doc/Denormalizer/DenormalizerObjectMappingRegistry.md)

### Deserializer

[](#deserializer)

```
