https://github.com/stringepsilon/phpserializernet
A .NET library for working with the PHP serialization format
https://github.com/stringepsilon/phpserializernet
dotnet-core php-serialization
Last synced: 3 months ago
JSON representation
A .NET library for working with the PHP serialization format
- Host: GitHub
- URL: https://github.com/stringepsilon/phpserializernet
- Owner: StringEpsilon
- License: mpl-2.0
- Created: 2021-09-05T16:43:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-23T17:15:49.000Z (10 months ago)
- Last Synced: 2025-09-26T00:20:02.780Z (4 months ago)
- Topics: dotnet-core, php-serialization
- Language: C#
- Homepage:
- Size: 393 KB
- Stars: 16
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.nuget.org/packages/PhpSerializerNET/) [](https://github.com/StringEpsilon/PhpSerializerNET/blob/main/LICENSE) [](https://dev.azure.com/StringEpsilon/StringEpsilon/_build/latest?definitionId=4&branchName=main) 
-----
# PhpSerializerNET
This is a .NET library for working with the [PHP serialization format](https://en.wikipedia.org/wiki/PHP_serialization_format).
Usage is rather simple:
[Serializing](https://stringepsilon.github.io/PhpSerializerNET/Usage/Serializing)
```c#
using PhpSerializerNET;
string serializedData = PhpSerialization.Serialize(myObject);
```
and [Deserializing](https://stringepsilon.github.io/PhpSerializerNET/Usage/Deserializing)
```c#
using PhpSerializerNET;
object myObject = PhpSerialization.Deserialize(serializedData);
```
[Detailed documentation can be found here](https://stringepsilon.github.io/PhpSerializerNET).
## Changelog
[Detailed list of changes for each version since initial release here.](https://github.com/StringEpsilon/PhpSerializerNET/blob/main/CHANGELOG.md).
## Why?
I'm working with some legacy project that uses the format and the only other implementation of a serializer/deserializer I found had no license attached and I needed something GPL compatible. So wrote this one from scratch.
## License
This project is licenced under the MPL 2.0.