Find user defined functions and their usage in a massive code base

Posted by Frenck on Stack Overflow See other posts from Stack Overflow or by Frenck
Published on 2010-04-19T12:59:02Z Indexed on 2010/04/19 13:03 UTC
Read the original article Hit count: 299

Filed under:

Hi,

I'm currently working with an massive PHP codebase, witch is completely undocumented.

Here's the deal. All of the PHP code is included every page call. They build a simple include all kinda function that scan's the directory and includes all PHP files it can find. It works recursively for all the subfolders.

I would like to know what functions are used in what files and from which files those functions came.

I need to know this in order to switch to normale includes. Also it gives me more information about not used functions and files (since it a really old and big codebase, there is a lot of legacy in it).

It there a tool or something for PHP that can check this kind of stuff in a codebase?

© Stack Overflow or respective owner

Related posts about php