PHPackages                             danog/magicalserializer - 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. danog/magicalserializer

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

danog/magicalserializer
=======================

Serialize Volatile, Threaded or any other internal PHP class!

1.0(8y ago)9537.1k↓12.5%4AGPL-3.0-onlyPHP

Since Feb 20Pushed 8y ago3 watchersCompare

[ Source](https://github.com/danog/MagicalSerializer)[ Packagist](https://packagist.org/packages/danog/magicalserializer)[ Docs](https://daniil.it/MagicalSerializer)[ RSS](/packages/danog-magicalserializer/feed)WikiDiscussions master Synced 1mo ago

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

MagicalSerializer
=================

[](#magicalserializer)

Licensed under AGLPV3, created by Daniil Gentili ().

This library allows you to serialize classes that extend pthreads's Volatile or Threaded classes, or any other internal class with a custom serializer.

It also provides reverse and forward compatibility between old serializations, where your objects do not yet extend Threaded/Volatile, and new serializations, where they do extend them.

Install it using composer, the package name is `danog/magicalserializer`.

Usage of this library is extremely simple, here are a few examples (see a.php and b.php for more):

```
