My PHP Site System Analysis Tool 01
For post-job requirements, you need to quickly figure out how the entire PHP Web system works. With a sense of temptation, wrote this tool.
Temporarily call it "System Information Dynamic Analysis map", perhaps "System Information map" more convenient.
This time the dream-weaving system was taken as an experimental object.
This code, found a good SVG plug-in--svgjs (svgjs.com), it is very convenient to use the JS script control to draw some vector diagram.
This program has been conceived for a long time and it is only two days to achieve it.
This program runs on a local virtual machine, and the entire display process waits for the browser to look like half a minute.
Although there are many imperfect parts of the whole program, there is still room for improvement if there is a very high frequency of use later on.
An overview of the algorithm process:
Each element is a unique ID, and a block of space stores the ID value of the line target, which automatically reads the coordinate information of the target ID that it carries, creates the connection, this part is JS complete, the element ID is named and the ID is carried by the PHP part by the absolute address of the file hash formed.
Here is the Web page where the code automatically generates the effect.
The Cyan line represents the php file location in the php file (php files are currently only requireonce and other files are not added).
The Yellow Line is the connection formed by manually selecting a file.
The connection lines can all be erased.