Command-line tool
phpstan
brew/phpstan
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
PHP Static Analysis Tool
At a glance
- Type
- Command-line tool
- Install on
- macOS
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install phpstan
Analyze one or more directories
phpstan analyse path/to/directory1 path/to/directory2 ...
Analyze a directory using a configuration file
phpstan analyse path/to/directory -c path/to/config
Analyze using a specific rule level (0-10, higher is stricter)
phpstan analyse path/to/directory -l level
Related command-line tools
- datadog-static-analyzer
Static analysis tool for code quality and security - detekt
Static code analysis for Kotlin - clair
Vulnerability Static Analysis for Containers - sparse
Static C code analysis tool - souffle
Logic Defined Static Analysis - credo
Static code analysis tool for the Elixir - tfsec
Static analysis security scanner for your terraform code - luacheck
Tool for linting and static analysis of Lua code
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents