views:

198

answers:

1

This question is a continuation of my previous question here http://stackoverflow.com/questions/2122850/zend-models-architecture (big thanks to Bill Karwin). I've made some reading including this article

and this question

Now I understand, what domain driven design is. But examples are still very simple and poor. They are based on one table and one model. Now, my question is: do they use Domain Model Design in real-world PHP projects?

I've been looking for some good documentation about this, but I haven't found anything good enough, that explains how to manage several tables and transfer them to Domain Objects. As long as I know, there is Hibernate library, that has this features in Java, but what should I use in PHP (Zend Framework)?

+3  A: 

Excellent question. There is indeed a lack of DDD examples with PHP.

There has been a series of articles by Federico Cargnelutti on how to do DDD with PHP and in parts with ZF that might be of interest to you:

Regarding ZF, there has been a proposal for Zend_Entity and Zend_DataMapper for some time, but development on those has been terminated in favor of integrating ZF with Doctrine. Doctrine is also the closest thing to Hibernate in PHP.

When googling for DDD with PHP, there will be a few additional resources, but nothing as comprehensive as the resources available at the official DDD site with code for the App described in Eric Evan's DDD book.

Gordon
Thank you, I agree that Doctrine is the right way to go!
mik