Transform Data into Type-safe DTOs with this PHP Package
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
The PHP Data Model package allows for lightweight and non-invasive hydration of type-safe PHP objects using reflection and attributes. It simplifies object hydration, ensures type safety, reduces defensive programming, and allows flexible value resolution. Integrate it seamlessly by adding the DataModel trait to your classes without altering class hierarchies. Additionally, it offers advanced features like required properties enforced via attributes, with extensive documentation and source code available on GitHub.
8 Comments
Sort: