PHPackages                             itav/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. itav/serializer

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

itav/serializer
===============

v2.0.1(6y ago)113.6k↓100%PHPPHP ^7.1

Since May 13Pushed 6y ago2 watchersCompare

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

READMEChangelogDependencies (1)Versions (20)Used By (0)

PHP Serializer
==============

[](#php-serializer)

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Quick Start](#quick_start)
- [How to Contribute](#contribute)

#### main features:

[](#main-features)

- work recursively up to 50 nested objects/arrays
- handling \\DateTime objects
- implement Java style naming convention.

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

[](#installation)

Add Serializer to your `composer.json` file.

```
{
  "require": {
    "itav/serializer": "~1.2"
  }
}
```

or simply fire up on terminal:

```
composer require itav/serializer
```

Then at the top of your PHP script require the autoloader:

```
require 'vendor/autoload.php';
```

Quick Start
-----------

[](#quick-start)

Php Serializer allows you to switch between: ####objects --- arrays --- json, xml

```
