N
N
Nikita Undefined2020-11-08 10:46:25
PHP
Nikita Undefined, 2020-11-08 10:46:25

How to view the schematic structure of the project?

Once again, I took a huge project on OpenCart2 , and, as usual, to solve serious problems, I sit and understand the project for the second day, instead of writing code. In this regard, I had a question: “ how to simplify the understanding of the project? ".

cool story
Однажды, один серьёзный тех.лид. рассказывал мне об инструменте, который умеет составлять структуру всего проекта от index.php в корне до самого последнего подключённого модуля.

That is: if, say, we need to redo the product page, we can visually see everything that happens under the hood of the site from beginning to end. Starting from the first lines of index.php, lib files, controllers, models, ending with views. That is, the entire tree of files and functions in them that took part in rendering a particular page is displayed in the form of a diagram.
Having such a tool, you can quickly and easily find out where and what to write.
Googling for an hour, I did not find a single sensible tool. Can someone suggest a suitable one?
PS: draw scratches and mindmaps yourself - do not offer! We need at least some automated functionality. Perhaps a plugin for an IDE (phpstorm for example) or a module/lib for php/js?In general, I will be grateful for any sensible advice on how to quickly join large highload projects.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nokimaro, 2020-11-08
@Privetiq

Google "PHP profiler" and choose any one you like, since almost everyone knows how to build a call tree
. Which PHP profiler should I get?
to broaden your horizons, you can watch a short report https://www.youtube.com/watch?v=vF29LanRQv4

D
Dimonchik, 2020-11-08
@dimonchik2013

That is: if, say, we need to redo the product page, we can visually see everything that happens under the hood of the site from beginning to end. Starting from the first lines of index.php, lib files, controllers, models, ending with views. That is, the entire tree of files and functions in them is displayed that took part in rendering a particular page.

well, of course we can, APM services can) the same with the technical lead program - everything is possible)
spoiler
если, конечно, прогеры вставили в код нужные теги, метки, код в нужных местах ))))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question