开发者

DTO framework for PHP

开发者 https://www.devze.com 2023-03-02 16:50 出处:网络
Is there any PHP framework to manage DTO (Data 开发者_高级运维Transfer Object) and the mapping of DTOs to the Domain Model ?

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消