PHPackages                             dozer111/serialize - 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. dozer111/serialize

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

dozer111/serialize
==================

Serialize library for ITEA homework

1.0.0(7y ago)03proprietaryPHPPHP &gt;=7.1

Since May 5Pushed 7y agoCompare

[ Source](https://github.com/dozer111/itea_serializer)[ Packagist](https://packagist.org/packages/dozer111/serialize)[ RSS](/packages/dozer111-serialize/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

dozer111\\serialize
===================

[](#dozer111serialize)

Library, for serializing object to:

- json
- yaml
- xml
- your custom dataType

> \+ possibility to get setted visibility lvl properties

---

Installing
----------

[](#installing)

`composer require dozer111/serialize`

Usage examples
--------------

[](#usage-examples)

#### Simple serializing

[](#simple-serializing)

```
use dozer111\serializer\SerializeFactory;

# ..........

$testData = new SomeYourObject();

# you can get json data like this
$data = (new SerializeFactory('json'))->serialize($testData);
# or using one of SerializeFactory constants
/*
$data = (new SerializeFactory(SerializeFactory::SERIALIZER_JSON))
            ->serialize($testData);
*/
```

#### Serialize only protected properties using Factory constants

[](#serialize-only-protected-properties-using-factory-constants)

```
use dozer111\serializer\SerializeFactory;

# ..........

$testData = new SomeYourObject();
$data = (new SerializeFactory(SerializeFactory::SERIALIZER_JSON))
            ->serialize($testData,SerializeFactory::SERIALIZE_PROTECTED);
```

#### Serialize data using custom serializers

[](#serialize-data-using-custom-serializers)

```
use dozer111\serializer\SerializeFactory;
use xxx\yyy\DummySerialize;

# ..........

$testData = new SomeYourObject();
$yourSerializer = DummySerialize::class;

$data = (new SerializeFactory($yourSerializer))
            ->serialize($testData);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2567d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33666699?v=4)[Olex Khonko](/maintainers/dozer111)[@dozer111](https://github.com/dozer111)

---

Top Contributors

[![dozer111](https://avatars.githubusercontent.com/u/33666699?v=4)](https://github.com/dozer111 "dozer111 (5 commits)")

### Embed Badge

![Health badge](/badges/dozer111-serialize/health.svg)

```
[![Health](https://phpackages.com/badges/dozer111-serialize/health.svg)](https://phpackages.com/packages/dozer111-serialize)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
