LinuxCommandLibrary

phan

A static analysis tool for PHP.

TLDR

Generate a .phan/config.php in the current directory

$ phan --init
copy


Generate a Phan configuration file using a specific level (1 being strictest to 5 being the least strict)
$ phan --init --init-level [level]
copy


Analyze the current directory
$ phan
copy


Analyze one or more directories
$ phan --directory [path/to/directory] --directory [path/to/another_directory]
copy


Specify a config file (defaults to .phan/config.php)
$ phan --config-file [path/to/config.php]
copy


Specify the output mode
$ phan --output-mode [text|verbose|json|csv|codeclimate|checkstyle|pylint|html]
copy


Specify the number of parallel processes
$ phan --processes [number_of_processes]
copy

Copied to clipboard