PHPackages                             attributes-php/serialization - 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. attributes-php/serialization

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

attributes-php/serialization
============================

Serializes any class instance into a primitive type

v0.3.1(9mo ago)13593MITPHPPHP ^8.1CI failing

Since Jun 18Pushed 3mo agoCompare

[ Source](https://github.com/Attributes-PHP/serialization)[ Packagist](https://packagist.org/packages/attributes-php/serialization)[ RSS](/packages/attributes-php-serialization/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (4)Versions (7)Used By (3)

Attributes Serialization
========================

[](#attributes-serialization)

 [![Code Coverage](https://camo.githubusercontent.com/cf4ced3c79bc3756fbf82337f9c56f2aab64906588f0d3fb6a1d0c6b9def8c56/68747470733a2f2f636f6465636f762e696f2f67682f417474726962757465732d5048502f73657269616c697a6174696f6e2f67726170682f62616467652e7376673f746f6b656e3d47747057304c72677171)](https://codecov.io/gh/Attributes-PHP/serialization) [![Latest Version](https://camo.githubusercontent.com/26a93430c59186fc09d5ea776df93a89fa296b4b256cf0bc933690bf828882b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f417474726962757465732d5048502f73657269616c697a6174696f6e)](https://packagist.org/packages/Attributes-PHP/serialization) [![Software License](https://camo.githubusercontent.com/dabf5f4e340f5feccb28b06b6248dca0d8a052fb5caf2abd614b1a656bc2edc9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e63652d4d49542d627269676874677265656e)](https://packagist.org/packages/Attributes-PHP/serialization)

**Attributes Serialization** is a library that serializes any object into a PHP primitive type

Features
--------

[](#features)

- Converts any type of object into a primitive type
- Support for alias, alias generators and more via [Attributes](https://github.com/Attributes-PHP/options)

Requirements
------------

[](#requirements)

- PHP 8.1+
- [Attributes-PHP/options](https://github.com/Attributes-PHP/options)

We aim to support versions that haven't reached their end-of-life.

How it works?
-------------

[](#how-it-works)

```
