We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
如果我理解正确,并且您想要一个工具来显示其中包括您拨打的电话。或者您是指显示其中包含某些所需文件的工具?
看看 Xdebug,我认为它应该能够做第一件事:
Xdebug 堆栈跟踪
If i understood you right and you want a tool that shows which include calls you made. Or did you mean a tool which shows which includes some files require?
Have a look at Xdebug i think it should be capable of doing the first thing:
Xdebug stack trace
不确定这样的工具,但要知道包含哪些文件,您可以使用
get_included_files
并且您可以获取定义的变量、常量和函数,如下所示get_define_vars
get_defined_constants
get_defined_functions
Not sure about such tool but to know what files are included, you can use
get_included_files
and you can get defined variables, constants and functions like thisget_defined_vars
get_defined_constants
get_defined_functions
phpDocumentor 至少会列出您的所有类,并以 HTML 格式记录它们,并在每个类中提供指向所需类的链接。如果您想以特定方式进行依赖关系图,您还可以扩展 phpDoc 的行为。 phpDoc 松散地基于javadoc。
phpDocumentor will at least list out all your classes and document them in HTML format with links in each class to the required classes. You can also extend the behavior of phpDoc if you want to do dependency graphing in a particular way. phpDoc is loosely based on javadoc.
尝试 Inlued,这是一个扩展 PHP 并报告文件包含和其他信息的 PECL 包。说明书上的介绍是这样说的:
另请查看 PHP_Depend,这是一个 PHP 代码度量工具。这并不完全显示文件依赖关系,但它报告了代码复杂性指标,当您维护和重构继承的 PHP 项目时,这些指标可能会有所帮助。
Try Inclued, a PECL package that extends PHP and reports file inclusions and other information. The manual introduction says:
Also check out PHP_Depend, a code metrics tool for PHP. This does not exactly show file dependencies, but it reports code complexity metrics that may be of help as you're maintaining and refactoring an inherited PHP project.
如果您不介意 UML,Enterprise Architect 会制作一些非常好的自动生成的类图。我的大多数项目都使用它:) 虽然成本有点高,但值得
http ://www.sparxsystems.com/products/ea/index.html
If you don't mind UML, Enterprise Architect makes some pretty good autogenerated class diagrams. I use it for most of my projects :) It's a bit costly, but it's worth it
http://www.sparxsystems.com/products/ea/index.html