Serde
Serde copied to clipboard
Robust Serde (serialization/deserialization) library for PHP 8.
## Detailed description I'd like to see serialization support for object properties of type "iterable". They should be treated the same way as arrays (or more precise sequences). ## Context...
From Reddit, maybe we should do some validation on the object after it's loaded? https://www.reddit.com/r/PHP/comments/wduj55/comment/iin84r2/?utm_source=reddit&utm_medium=web2x&context=3 public function __construct(private string $name) { … } No one would expect this class to...
## Description Allows for the importing and exporting of UNIX timestamps ## Motivation and context closes #50 ## How has this been tested? Ran on a dev-deployment of an API...
Unit test for https://github.com/Crell/Serde/issues/53
## Detailed description Provide a detailed description of the change or addition you are proposing. Make it clear if the issue is a bug, an enhancement or just a question....
## Detailed description I wonder that how to deserialize top-level sequences into an object. I found that something similar already exists in this library, but limited to CSV. For example,...
Oftentimes, we programmers need to deserialize unix timestamps. However, Serde doesn't know what to do with an int when passing it to create a `DateTimeImmutable.` These are a little funky,...
I have some abstract classes that represent my common "base" value objects: for example ULID, String, Email, ... I typically extend these abstract classes with one more appropriate for the...
## Detailed description cf: https://mstdn.social/@sk757a/111515634274254076 Might one of those be faster than what we're doing now?
When error occures during deserialization the field path could be present to use in API error response. ## Detailed description and context For programmer centric experience when using deserialization as...