What is this?
PHPCity is an implementation of the
Code City metaphor for visualizing source code. This visualisation is focused on PHP projects which follow object-oriented principles.
What is city metaphor?
City metaphor maps features of data onto features of virtual city - buildings and districts in PHPCity's case. Low-level features, such as number of methods in a class can be mapped on building width etc.
How to use it?
Select a demo project from "Load a demo project" select box and a project's visualization will be rendered. Our implementation uses packages as city districts and classes (and interfaces) as buildings. District nesting follows nesting of packages in source code. Buildings' height and width depends on features of classes.
How to control it?
Hold left mouse button to rotate the camera, scroll to zoom and use arrow keys for movement. Move your cursor over a building or a district in order to see details about the structure.
How to alter it?
Use filter options in top navbar to filter buildings by their type or highlight buildings that extend a class or implement an interface.
Move your mouse cursor to the left (on
icon) in order to see options to remap source code features on buildings' attributes. Click update to rerender the visualization.
How to get high-level overview of source code features?
Move your mouse cursor to the right (on
icon) in order to see distributions of number of methods, attributes, and lines of code.
How to visualize my own PHP project?
Please follow
these instructions.