有没有可视化工具来设计和生成 PHP 类的代码?

发布于 2024-09-27 17:10:16 字数 488 浏览 4 评论 0原文

我知道一般的、与语言无关的设计可以使用任何 UML 工具来完成,但是有没有专门为 PHP 制作的东西(或者使用 PHP 作为可选选择之一)?现在我使用 NClass,它很好且易于使用,但它是为 C# 设计的,所以我必须使用这种语言的语法(方法参数的类型等)。

我用 google 搜索了网络,但没有注意到任何使用 PHP 语法制作的内容,所以我在这里询问。如果不发现 Visual Studio 或 Eclipse 的某些插件就是答案,那就太好了:) 并不是说​​我反对这些产品,而是在我的工具包中加入一些更轻且与大型 IDE 分离的东西会很不错。

编辑:我刚刚下载了 ArgoUML,因为它应该有 PHP 支持,所以我检查了它,但让这个事实不要让你泄气,我仍在等待你的提示:)

编辑2:我还在相关工具中寻求的小功能是对代码问题的帮助,例如向实现该接口的类添加接口方法。 ArgoUML 没有这样的功能或者我只是还没有找到它。

I know that general, language agnostic design can be done with any of UML tools but is there anything made just for PHP (or with PHP as one of optional choices)? For now I use NClass, it's nice and easy to use but it is designed for C# so I have to use syntax of this language (types for method's arguments, etc.).

I googled the web but I didn't noticed anything made with PHP syntax in mind so I ask here. It would also be great not to find out that some plugin for Visual Studio or Eclipse is the answer :) Not that I'm against these products but something lighter and separated from huge IDE would be nice to have in my toolkit.

EDIT: I just downloaded ArgoUML because it suppose to have PHP support, so I check it out but let that fact not discourage you, I'm still waiting for your tips :)

EDIT2: Little feature I also seek in tool in question is assistance for code issues like adding interface methods to a class implementing that interface, for example. ArgoUML does not have such feature or I just didn't not found it yet.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

安稳善良 2024-10-04 17:10:16

我下载了 Sparx Systems Enterprise Architect 8 试用版,它似乎只是做我需要的事情和我需要的方式(很好很简单,如果我需要它们,会提供详细信息,当我只想绘制图表时,会提供有用的默认值)。代码生成涵盖多种语言,PHP 就是其中之一,它可以毫无问题地工作,代码又漂亮又干净,这正是我想要的作为思考阶段后编码阶段的基础:)

所以,就目前而言,我想我找到了我的工具(它又大又强大,但就其企业外观而言似乎相当轻巧)。我将这个问题保留一段时间,也许有人会想添加一些关于此事的有用信息。

I downloaded Sparx Systems Enterprise Architect 8 trial and it seems just do what I need and the way I need it (nice and easy, with details if I need them and with useful defaults when I just want to draw my diagrams). Code generation covers many languages and PHP is one of them and it works without problems and code is nice and clean, just what I wanted as a base for coding phase after thinking phase :)

So, as for now I think I found my tool (it's big and powerful but seems pretty light for its enterprise look). I keep this question open for some time, maybe someone will want to add some useful info on that matter.

清醇 2024-10-04 17:10:16

看看这个网站:
http://www.phpclasses.org/browse/class/90.html

它有很多 php 编辑器和类生成器..

希望有帮助
问候

check out this website:
http://www.phpclasses.org/browse/class/90.html

It has lots of php editors and class generators..

hope it helps
regards

你在看孤独的风景 2024-10-04 17:10:16

请参阅这篇文章,其中包含关于 bouml

PHP UML 生成器

see this post with answers special on bouml

PHP UML Generator

魂牵梦绕锁你心扉 2024-10-04 17:10:16

我使用 Visual Paradigm 一段时间了,我发现它使用起来非常直观,很棒的产品!

I'm using Visual Paradigm for a while now, and I find it very intuitive to use, great product!

夏有森光若流苏 2024-10-04 17:10:16

AtomWeaver 是一个通用代码生成器。它不限于任何一组输出语言,因此您可以包含您自己的语言。困难的部分是您必须从头开始,因为到目前为止还没有预制库可用。好处是您可以按照您需要/想要的方式生成代码。

http://www.atomweaver.com 用于生成器;
http://www.abse.info 用于其实现的建模/生成范例 (ABSE)

AtomWeaver is a general-purpose code generator. It is not limited to any set of output languages, so you can include your own. The hard part is that you have to start from scratch as no pre-made libraries are available as of today. The good part is that you can generate code just the way you need/want.

http://www.atomweaver.com for the generator;
http://www.abse.info for the modeling/generation paradigm it implements (ABSE)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文