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

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

fev/serializer
==============

Simple library for serialize/un(de)serialize JSON, YAML, XML.

v1.0.2(5y ago)11BSD-3-ClausePHPPHP &gt;=7.4

Since Aug 15Pushed 5y ago2 watchersCompare

[ Source](https://github.com/FEV-soft/serializer)[ Packagist](https://packagist.org/packages/fev/serializer)[ RSS](/packages/fev-serializer/feed)WikiDiscussions master Synced 1w ago

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

Simple library for serialize (encode, decode) JSON, YAML, XML data.
===================================================================

[](#simple-library-for-serialize-encode-decode-json-yaml-xml-data)

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

[](#installation)

For using this library just execute the following command

```
$ composer require fev/serializer
```

Usage
-----

[](#usage)

For usage this library you need use 2 clases:

`SerializeJson` for JSON data

`SerializeYAML` for YAML data

both classes have 2 general methods:

`SerializeToFormat` and `UnserializeFromEncodedFormat`

`SerializeToFormat($data)` - encode you data.

`UnserializeFromEncodedFormat($str)` - decode you data.

XML not implement yet.

Extension
---------

[](#extension)

For extended this library create new class from class `AbstractSerialize`and define 2 general methods `SerializeToFormat` and `UnserializeFromEncodedFormat` for you type of data.

Tests
-----

[](#tests)

You can run tests with next command

`$ php test-json.php` for JSON data.

`$ php test-yaml.php` for YAML data.

`$ php test-xml.php` for XML data (Not implement yet).

License
-------

[](#license)

[![license](https://camo.githubusercontent.com/e39f59f18c324eedeb898bc6f9efabb974f3b63acfcfb70e847532d901fe7329/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f67726565666c61732f64656661756c742d70726f6a6563742e737667)](LICENSE)

This project is released under the terms of the BSD-3-Clause [license](LICENSE).

Copyright (c) 2020, FEV

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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

Every ~0 days

Total

2

Last Release

2101d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/69251083?v=4)[FEV-soft](/maintainers/FEV-soft)[@FEV-soft](https://github.com/FEV-soft)

---

Top Contributors

[![FEV-soft](https://avatars.githubusercontent.com/u/69251083?v=4)](https://github.com/FEV-soft "FEV-soft (3 commits)")

---

Tags

jsonxmlserializeyamlserializerunserialize

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/fev-serializer/health.svg)

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

###  Alternatives

[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

97513.5M170](/packages/hassankhan-config)[thunderer/serializard

Flexible serializer

2767.3k1](/packages/thunderer-serializard)[zumba/json-serializer

Serialize PHP variables, including objects, in JSON format. Support to unserialize it too.

129743.7k13](/packages/zumba-json-serializer)

PHPackages © 2026

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