LinuxCommandLibrary

phpstan

phpstan

TLDR

Display available options for analysis

$ phpstan analyse --help
copy


Analyze the specified space-separated directories
$ phpstan analyse [path/to/directory]
copy


Analyze a directory using a configuration file
$ phpstan analyse [path/to/directory] --configuration [path/to/config]
copy


Analyze using a specific rule level (0-7, higher is stricter)
$ phpstan analyse [path/to/directory] --level [level]
copy


Specify an autoload file to load before analyzing
$ phpstan analyse [path/to/directory] --autoload-file [path/to/autoload_file]
copy


Specify a memory limit during analysis
$ phpstan analyse [path/to/directory] --memory-limit [memory_limit]
copy

Copied to clipboard