phan
A static analysis tool for PHP. tldr-pages
On several platforms
Several platforms
Generate a .phan/config.php in the current directory
phan --initIdentifyGenerate a Phan configuration file using a specific level (1 being strictest to 5 being the least strict)
phan --init --init-level 1..5IdentifyAnalyze the current directory
phanIdentifyAnalyze one or more directories
phan --directory path/to/directory1 --directory path/to/directory2 ...IdentifySpecify a configuration file (defaults to .phan/config.php)
phan --config-file path/to/config.phpIdentifySpecify the output mode
phan --output-mode textIdentifySpecify the number of parallel processes
phan --processes number_of_processesIdentify