doujiang2641 2011-11-01 15:07
浏览 23
已采纳

如何从现有的PHP代码中查看类,函数,对象图? [重复]

Possible Duplicate:
PHP UML Generator

I am trying to understand some php code that is heavily object-oriented and has a MVC structure.. without much luck from just browsing the code.

Is their a tool that can help me, for example by producing some class diagrams, which classes extend which ones, what functions each class has and how they communicate, even in a high level?

  • 写回答

2条回答 默认 最新

  • doutuan9357 2011-11-01 15:25
    关注

    If your project is using a known framework, read the docs to understand how it is structured.

    Doxygen can help building call graphs and relationships between objects and more if the code is documented.

    An IDE such as Eclipse PDT or Komodo will help browsing/viewing.

    It probably has an index.php page that will load the code/framework and probably a config.php file to configure it. Reading both of these files will help you figure out where a request starts being processed.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 Llama如何调用shell或者Python
  • ¥20 谁能帮我挨个解读这个php语言编的代码什么意思?
  • ¥15 win10权限管理,限制普通用户使用删除功能
  • ¥15 minnio内存占用过大,内存没被回收(Windows环境)
  • ¥65 抖音咸鱼付款链接转码支付宝
  • ¥15 ubuntu22.04上安装ursim-3.15.8.106339遇到的问题
  • ¥15 blast算法(相关搜索:数据库)
  • ¥15 请问有人会紧聚焦相关的matlab知识嘛?
  • ¥15 网络通信安全解决方案
  • ¥50 yalmip+Gurobi