Jan 15, 2015 Tag: Graphics

About Computer Graphics

About graphics, charts, diagrams, ...

Updated on Dec 13, 2016

Navigate this page:

Diagrams

As Online Service

phpCallGraph

./phpcallgraph -h

Usage:
  $ ./phpcallgraph [-f <string>] [-o <string>] \
    [-u <string>] [-r] [-d <string>] [-n] [-p] \
    [-a <string>] [-v] [-g] [-h] [--]          \
    <string:sources> [<string:sources> ...]

PHPCallGraph v0.8.0

A tool to generate static call graphs for PHP
source code. The graphs can be leveraged to gain
a better understanding of large software systems
or even to debunk design flaws in them.
-f, --format Set output format. Can be ‘txt’, ‘array’, ‘deadcode’, ‘umlgraph’, ‘cga’ or one of the formats supported by dot, e.g. png, svg, pdf, ps, ... (see http://graphviz.org/doc/info/output.html)
-o, --outputfile
 Output file
-u, --umloutputdir
 UML output directory (only used for the umlgraph output format
-r, --recursive
 Analyze directories recursive
-d, --dotcommand
 Set dot command
-n, --noexternalcalls
 Do not show calls to methods or functions which are external to a class
-p, --phpfunctions
 Show calls to internal PHP functions
-a, --autoload Sets a PHP file with an autoload function which will be included into the sandbox of the InstantSVC CodeAnalyzer
-v, --verbose Verbose mode for text output format
-g, --debug Print debug information (helpful if you get no output at all, since it shows errors during code analysis)
-h, --help Display help
Arguments:
<string:sources> Files and/or directories to analyze

Example

Command:

cd phpcallgraph-0.8.0/bin
./phpcallgraph -f txt -o kannweg.svg -r ..

Result:

PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Cannot set read-only property ezcReflectionClass::$class' in phpcallgraph-0.8.0/lib/ezcomponents/Reflection/src/class.php:47
Stack trace:
#0 /home/marble/htdocs/phpcallgraph-0.8.0/lib/ezcomponents/Reflection/src/class.php(47): ezcReflectionClass->__construct()
#1 /home/marble/htdocs/phpcallgraph-0.8.0/lib/instantsvc/components/CodeAnalyzer/src/code_analyzer.php(407): ezcReflectionClass->__construct('ezcReflectionCl...')
#2 /home/marble/htdocs/phpcallgraph-0.8.0/lib/instantsvc/components/CodeAnalyzer/src/code_analyzer.php(222): iscCodeAnalyzer::summarizeInSandbox('../bin/php.ini....', '', false)
#3 /home/marble/htdocs/phpcallgraph-0.8.0/src/PHPCallGraph.php(226): iscCodeAnalyzer->inspectFiles(Array)
#4 /home/marble/htdocs/phpcallgraph-0.8.0/src/PHPCallGraphCli.php(226): PHPCallGraph->parse(Array, true)
#5 /home/marble/htdocs/phpcallgraph-0.8.0/bin/phpcallgraph(51): PHPCallGraphCli->run()
#6 {main}
  thrown in phpcallgraph-0.8.0/lib/ezcomponents/Reflection/src/class.php on line 47

Incoming

Comments

comments powered by Disqus

Previous topic

Using Linux

Next topic

About Email Mailings

Tags

Archives

Languages

Recent Posts

This Page