PHPackages                             olya-hryhorenko/oop\_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. olya-hryhorenko/oop\_serialize

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

olya-hryhorenko/oop\_serialize
==============================

This is a object serializer written in OOP way.

10[1 PRs](https://github.com/OlyaHryhorenko/oop_serialize/pulls)PHPCI failing

Since Oct 17Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/OlyaHryhorenko/oop_serialize)[ Packagist](https://packagist.org/packages/olya-hryhorenko/oop_serialize)[ RSS](/packages/olya-hryhorenko-oop-serialize/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Serializer
==========

[](#serializer)

The utility to serialize objects to XML, JSON, YAML format

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

[](#installation)

```
$ composer create-project olya-hryhorenko/oop_serialize
```

Usage
-----

[](#usage)

Example of implementing library

```
require_once __DIR__ . '/../vendor/autoload.php';

use App\Serializer;
use App\JSONSerializer;
use App\XMLSerializer;
use App\YAMLSerialier;

/**
 * test array
 */
$test = (object) array('this'=> 'that', 'whom'=> 'who');

$new_yaml_serialize = new Serializer(new YAMLSerialier( $test));
echo 'YAML string '.$new_yaml_serialize->serialize();

$new_xml_serialize = new Serializer(new XMLSerializer($test));
echo 'XML serialize '.$new_xml_serialize->serialize();

$new_json_serialize = new Serializer(new JSONSerializer($test));
echo 'JSON serialize '.$new_json_serialize->serialize();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance54

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d4037ed075e56a666e4a0800106313c1eea8f58c3b6132d413f8a4dc2bc85311?d=identicon)[OlyaHryhorenko](/maintainers/OlyaHryhorenko)

---

Top Contributors

[![OlyaHryhorenko](https://avatars.githubusercontent.com/u/10911793?v=4)](https://github.com/OlyaHryhorenko "OlyaHryhorenko (10 commits)")

### Embed Badge

![Health badge](/badges/olya-hryhorenko-oop-serialize/health.svg)

```
[![Health](https://phpackages.com/badges/olya-hryhorenko-oop-serialize/health.svg)](https://phpackages.com/packages/olya-hryhorenko-oop-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.0M283](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

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

Parser for CSS Files written in PHP

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

PHP Markdown

3.5k52.4M344](/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)
