phpstan Command Examples

A PHP static analysis tool to discover bugs in code. More information: https://phpstan.org/user-guide/command-line-usage.

phpstan analyse {{path/to/directory1 path/to/directory2 ...}}

phpstan analyse {{path/to/directory}} {{[-c|--configuration]}} {{path/to/config}}

phpstan analyse {{path/to/directory}} {{[-l|--level]}} {{level}}

phpstan analyse {{path/to/directory}} {{[-a|--autoload-file]}} {{path/to/autoload_file}}

phpstan analyse {{path/to/directory}} --memory-limit {{memory_limit}}

phpstan analyse --help