-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I'm not sure there's a one-size-fits-all solution here, but there are a bunch of DTO packages that make converting simple. I'm particularly intrigued by this one though I haven't actually tried it in anger. A lot of it seems to reinvent Symfony+Doctrine features like model validation, but it's more general and not tied to those frameworks.
This spatie lib looks neat too, though it might not be all that static analysis friendly. I guess this doesn't save you from having two classes with the same properties. Seems like it could be worth a shot. Short of inventing a code generation tool I don't know how much better I can do.
Related posts
-
A (very) small package to cast a variable to a new type, in including custom classes
-
Given a messy class used _heavily_ with a hard time understanding whats going on... how to log stuff in testing / demo??
-
Refactoring #5: From arrays to Data Transfer Objects
-
Leveraging DTOs for JSON database columns as an alternative to additional tables
-
What are peoples thoughts/feelings regarding PHP attributes?