An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![Nuget](https://img.shields.io/nuget/v/PhpSerializerNET?style=flat-square)](https://www.nuget.org/packages/PhpSerializerNET/) [![GitHub](https://img.shields.io/github/license/StringEpsilon/PhpSerializerNET?style=flat-square)](https://github.com/StringEpsilon/PhpSerializerNET/blob/main/LICENSE) [![Azure DevOps builds](https://img.shields.io/azure-devops/build/StringEpsilon/StringEpsilon/4?style=flat-square)](https://dev.azure.com/StringEpsilon/StringEpsilon/_build/latest?definitionId=4&branchName=main) ![Build Status](https://img.shields.io/azure-devops/coverage/StringEpsilon/StringEpsilon/4/main?style=flat-square)

-----

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