PHPackages                             lukasz93p/object-serializer - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. lukasz93p/object-serializer

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

lukasz93p/object-serializer
===========================

Package which allows easy serialization and deserialization of php objects using JSON format, setters or public properties are not needed.

1.0(6y ago)066[1 PRs](https://github.com/Lukasz93P/object-serializer/pulls)2MITPHPPHP ^7.3CI failing

Since Nov 16Pushed 3mo agoCompare

[ Source](https://github.com/Lukasz93P/object-serializer)[ Packagist](https://packagist.org/packages/lukasz93p/object-serializer)[ RSS](/packages/lukasz93p-object-serializer/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (3)Used By (2)

object-serializer
=================

[](#object-serializer)

Current implementation uses **jms/serializer**:

So **jms/serializer**'s annotations are a must for this package - here You can read about them:

Why to use this package?
------------------------

[](#why-to-use-this-package)

- It gives You very easy to use tool to convert php objects into JSON and inversely.
- Public properties, constructor or setters are not required so converted objects can utilize full encapsulation.
- Native php serialization is not used so serialized objects are not language dependent.
- Supports very rich spectrum of properties types (including class instances).

Hot to use?
-----------

[](#hot-to-use)

1 Class which You want to serialize have to implement

```
