Serde icon indicating copy to clipboard operation
Serde copied to clipboard

Robust Serde (serialization/deserialization) library for PHP 8.

Results 34 Serde issues
Sort by recently updated
recently updated
newest added

## Detailed description Can we leverage this somehow, especially for deserializing objects embedded in arrays? https://github.com/JetBrains/phpstorm-attributes#arrayshape ## Context Some folks are working with really bad APIs... ## Possible implementation Probably...

enhancement

Just watched your talk, love it! I work with PHP and Rust professionally so I'd love to convince my team to use this. I would like to add TOML support...

on ice

## Detailed description When an object contains a `mixed` property containing an object, the property fails to serialize in `MixedExporter` due to not being an `array`, `int`, `float`, `bool`, or...

bug

## Detailed description When serializing with a TypeMap and one of the possible elements is an Enum it will lose its type Ex: ``` #[StaticTypeMap(key: 'type', map: [ 'enum' =>...

bug

## Detailed description I would like to deserialize a string value into a string-backed Enum instance while also using the same string as part of a type map. Like this:...

enhancement

This is a WIP at the moment. The goal is to get to the point where we can write a class analyzer (from AttributeUtils) that, instead of parsing with reflection,...

TypeMap currently only supports a single property but I'd like to be able to use multiple (2) properties to decide a class to deserialize to (and map a class to...

## Detailed description Is there a way to skip null values from serialization, for example like in [Symfony serizalizer](https://symfony.com/doc/current/components/serializer.html#skipping-null-values)? ## Context I have a generic object for an API request...

## Description I found that the `json-stream` formatter currently does not escape any quotation marks in strings so that the output won't be well-formed JSON. For example, this results in...

This PR adds a failing test for a scenario that doesn't seem to be covered and I'm currently having issues with. I've had a crack at fixing it but I...