PhpSerializerNET 0.7.3
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package PhpSerializerNET --version 0.7.3
NuGet\Install-Package PhpSerializerNET -Version 0.7.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PhpSerializerNET" Version="0.7.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PhpSerializerNET" Version="0.7.3" />
<PackageReference Include="PhpSerializerNET" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PhpSerializerNET --version 0.7.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PhpSerializerNET, 0.7.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package PhpSerializerNET@0.7.3
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PhpSerializerNET&version=0.7.3
#tool nuget:?package=PhpSerializerNET&version=0.7.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
0.7.3:
- Fixed an issue with empty string deserialization, caused by the
EmptyStringToDefaultcode in 0.7.2.
0.7.2:
- Added
EmptyStringToDefaultdeserialization option, defaults to true.- When true, empty strings will be deserialized into the default value of the target IConvertible.
For example
s:0:"";deserialized to an integer yields0. See issue #13 for details.
- When true, empty strings will be deserialized into the default value of the target IConvertible.
For example
- Fixed a regression introduced in 0.7.1 where some data would no longer parse correctly (#12) due to improper handling of array brackets.
0.7.1:
- Fixed issue with nested array / object validation (issue #11)
- Added support for System.Guid (issue #10)
0.7.0:
- Support de/serialization of enums
- Added serialization option
NumericEnums: Whether or not to serialize enums as integer values Defaults to true. If set to false, the enum.ToString() representation will be used.
0.6.0:
- Allow more (valid) characters in object class names.
- Added public interface IPhpObject
- Added public class PhpObjectDictionary (implementing IPhpObject).
- This replaces
IDictionary<string, object>as the default deserialization target of objects.
- This replaces
- Added public class PhpDynamicObject (implementing IPhpObject)
- Added PhpDateTime to avoid conflicts with System.DateTime.
With IPhpObjects, you can get the class name specified in the serialized data via GetClassName().
Known issues:
- Can not deserialize dynamic objects.
0.5.1
- Fixed misleading exception message on malformed objects.
- Fixed valid classnames being rejected as malformed.
- Fixed type-lookup logic trying to deserialize with
nullType information.
Known issues:
Objects with classname(fixed since)DateTimewill fail to deserialize, unless the optionEnableTypeLookupis set tofalse.
0.5.0
BREAKING
- Renamed the static class
PhpSerializertoPhpSerialization
Other changes:
- Added support for object de/serialization (
O:4:"name":n:{...}). - Added
[PhpClass()]attribute. - Added
StdClassandEnableTypeLookupto deserialization options - Added options for
PhpSerialization.Serialize().ThrowOnCircularReferences- whether or not to throw on circular references, defaults to false (this might change in the future.)
- Updated and adjusted some of the XML documentation.
0.4.0
- Support for structs.
- Fixed performance drop due to over-checking the input string.
- Refactored deserializer to work in less steps and with cleaner code.
- Slight tweaks of some error messages.
0.3.0
- Added InputEncoding option.
- Added ability to deserialize into
List<MyClass>specifically- Currently only works when also setting UseList = Never
- Fixed a big issue with nested arrays stepping over keys.
- Added tests.
0.2.0
- Added option to convert strings "1" and "0" into bools when deserializing an object.
- Changed how validation is handled and moved validation out of the tokenization step.
- Added
[PhpIgnore]and[PhpProperty("name")]
0.1.0
- Initial release.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on PhpSerializerNET:
| Package | Downloads |
|---|---|
|
Paddle
Alpha Version Unofficial helpful sdk for Paddle |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.1.1 | 28,705 | 3/12/2025 |
| 2.1.0 | 412 | 3/7/2025 |
| 2.0.1 | 27,739 | 11/18/2024 |
| 2.0.0 | 432 | 11/13/2024 |
| 1.4.0 | 177,139 | 11/18/2023 |
| 1.3.0 | 77,132 | 11/10/2022 |
| 1.2.0 | 26,285 | 4/18/2022 |
| 1.1.0 | 178,288 | 1/17/2022 |
| 1.0.0 | 1,798 | 12/31/2021 |
| 0.11.0 | 1,027 | 12/23/2021 |
| 0.10.0 | 1,015 | 12/17/2021 |
| 0.9.0 | 975 | 12/8/2021 |
| 0.8.0 | 1,025 | 11/29/2021 |
| 0.7.4 | 941 | 11/28/2021 |
| 0.7.3 | 1,446 | 11/19/2021 |
| 0.7.2 | 1,044 | 11/9/2021 |
| 0.7.1 | 922 | 11/8/2021 |
| 0.7.0 | 1,206 | 10/11/2021 |
| 0.6.0 | 988 | 9/23/2021 |
| 0.5.1 | 1,627 | 9/21/2021 |
| 0.5.0 | 1,025 | 9/20/2021 |
| 0.4.0 | 1,091 | 9/12/2021 |
| 0.3.0 | 1,028 | 9/11/2021 |
| 0.2.0 | 977 | 9/7/2021 |
| 0.1.0 | 1,132 | 9/6/2021 |