You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow the installation instructions in install.txt in the source of pfff.
Once pfff is compiled, to search for PHP code patterns
simply do for instance:
This should process all files and at the very store the global analysis
results in /path/to/php/project/PFFF_DB.marshall`. This global analysis
mostly compute the callgraph of the PHP project to determine which
functions or methods or classes are the most used, and so are probably
the most important. It also stores which functions are taking
arguments by reference or which functions are dead, which is leveraged
later by the visualizer.
Once the light database has been saved, simply do:
$ ./codemap /path/to/php/project/
The tool will by default [1] look for a PFFF_DB.marshall file in the
directory of the processed project. It should ouput something like:
...
317 rectangles to draw
Using pfff light db: /path/to/php/project/PFFF_DB.marshall
Using Cairo version: 1.8.10
We got 1791 entities in 243 files
...