Is there any PHP framework to manage DTO (Data 开发者_高级运维Transfer Object) and the mapping of DTOs to the Domain Model ?
Thanks
I found a tutorial explaining the implementation of this paradigm, it may help a little.
Or if you are interested to solve your problem with other paradigms:
Perhaps, if you wish, you can be useful to use the PEAR package. Specifically, the MDB2 package (database abstraction layer), which implements the abstraction layer to the database.
Seems to me DTO is about transferring data as objects between applications. In PHP this can be done by using any of the available data storage containers, including JSON, DOM(XML) and XML.
Since DTO is a paradigm, I'm not sure what framework to suggest since most of them already work this way (although they don't call it as such).
精彩评论