Am working on a very large PHP application written by someone else.
Does anyone know of any tool (free or commercial) that would allow me to diagram which PHP file includes / calls / needs which other PHP file ?
I tried nWire for PHP and it doesn't accurately capture my include () calls.
If i understood you right and you want a tool that shows which include calls you made. Or did you mean a tool which shows which includes some files require?
Have a look at Xdebug i think it should be capable of doing the first thing:
Xdebug stack trace
Not sure about such tool but to know what files are included, you can use get_included_files
and you can get defined variables, constants and functions like this
// get vars
$vars = get_defined_vars();
// get constants
$consts = get_defined_constants();
// get functions
$funcs = get_defined_functions();
get_defined_vars
get_defined_constants
get_defined_functions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With