Zend的领域驱动设计 [英] Domain-driven design with Zend

查看:86
本文介绍了Zend的领域驱动设计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题是我上一个问题的延续,在这里
zend模型架构(大感谢Bill Karwin)。
我已经阅读了包括本文在内的内容

This question is a continuation of my previous question here zend models architecture (big thanks to Bill Karwin). I've made some reading including this article

  • http://weierophinney.net/matthew/archives/202-Model-Infrastructure.html

和这个问题

  • How To Properly Create Domain using Zend Framework?

现在我了解了什么是域驱动设计。但是例子仍然非常简单和糟糕。
它们基于一张桌子和一种模型。现在,我的问题是:他们是否在实际的PHP项目中使用域模型设计?

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?

我一直在寻找有关此的一些好的文档,但是我还没有找不到足够好的东西,这说明了如何管理多个表并将它们转移到域对象。据我所知,有一个Hibernate库在Java中具有此功能,但是我应该在PHP(Zend Framework)中使用什么呢?

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

推荐答案

Matthias Verraes组成了一个关于在PHP中进行DDD的新闻组。 Sf2。

There is a newsgroup formed by Matthias Verraes about doing DDD in PHP, mainly with Sf2.

Federico Cargnelutti撰写了一系列文章,内容涉及如何用PHP以及ZF可能引起您兴趣的DDD部分:

Somewhat older is 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:

  • Domain-Driven Design and MVC Architectures
  • Domain-Driven Design: Data Access Strategies
  • Domain-Driven Design: The Repository
  • Domain-Driven Design: Sample Application

关于ZF,有人提出了关于 Zend_Entity和Zend_DataMapper 已有一段时间,但是对它们的开发已经因为支持将ZF与Doctrine集成而终止 Doctrine 也是PHP中与Hibernate最接近的东西。

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.

使用PHP搜索DDD时,将会有一些其他资源,但是没有官方DDD网站上具有应用程序代码 >埃里克·埃文(Eric Evan)的DDD书。

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.

这篇关于Zend的领域驱动设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆