PHPackages                             theophy/php-serializable - 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. theophy/php-serializable

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

theophy/php-serializable
========================

this helps to serialize php object

1.0.0(9y ago)591[1 issues](https://github.com/theo4u/php-serializable/issues)GPL-3.0PHPPHP &gt;=5.4.0

Since Dec 2Pushed 9y ago4 watchersCompare

[ Source](https://github.com/theo4u/php-serializable)[ Packagist](https://packagist.org/packages/theophy/php-serializable)[ RSS](/packages/theophy-php-serializable/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

php-serializable
================

[](#php-serializable)

this helps to serialize php object

how to
------

[](#how-to)

to use it call the static method called serilaizable which will take in the obect as parameter. see example below

```
$user = new User();
$user->setFirstname("Theophilus");
$user->setLastname("Omoregbee");

$user->setStates(array(new State("Edo state", "ED"), new State("Lagos State", "LG")));
$user->setCountry(new Country("Nigeria","NG"));

$user->setRoles(array("ADMIN","DB MANAGER"));

$user->setEmail("theo4u@ymail.com");
$user->setPassword("1111");

//lets serialize our object now
echo json_encode(SerializeMe::serialize($user));

```

which will lead to this output `{"firstname":"Theophilus","lastname":"Omoregbee","states":[{"name":"Edo state","code":"ED"},{"name":"Lagos State","code":"LG"}],"country":{"name":"Nigeria","code":"NG"},"dateCreated":1477351778,"roles":["ADMIN","DB MANAGER"],"email":"theo4u@ymail.com","password":"b59c67bf196a4758191e42f76670ceba"}`

[![Response Json](https://github.com/theo4u/php-serializable/raw/master/serializable.png)](https://github.com/theo4u/php-serializable/raw/master/serializable.png)

Contributions
-------------

[](#contributions)

Allow contributions to make it faster and re-usable

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

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

3451d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/842147945a31992c3c751e2505fb86b576ff1a5894a15c95c49bdc1889d0b3b4?d=identicon)[theo4u](/maintainers/theo4u)

---

Top Contributors

[![theoomoregbee](https://avatars.githubusercontent.com/u/10440327?v=4)](https://github.com/theoomoregbee "theoomoregbee (13 commits)")

---

Tags

classiteratoroopphpphp-serializablerecursiveserialization

### Embed Badge

![Health badge](/badges/theophy-php-serializable/health.svg)

```
[![Health](https://phpackages.com/badges/theophy-php-serializable/health.svg)](https://phpackages.com/packages/theophy-php-serializable)
```

###  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)
