actions-x/phpstan (PHP Static Analysis)

Run phpstan on your project with easy to use configuration

View on GitHub

Trust Signals

Scorecard Score
Scorecard 0–2scored Jul 13, 2026
Maintenance Recency
Stalelast commit Apr 30, 2020
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions-x/phpstan@61bd915732739dfe570ad3ce2a648156704f8903 # v1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
installComposerWhether to install composer packages, set to '0' to disable (e.g. if you installed them manually).yes1
phpstanVersionSet the phpstan version, omit to use the latestyesnone
levelThe phpstan levelyesmax
pathsThe directories separated by space that phpstan will check. Not required since you can defined them in phpstan configno
configPathThe path to the config file, if not specified phpstan defaults are usedno
useBundledIf set to true, the local project phpstan is used instead of downloading it manuallyyes0
argumentsAny additional arguments you want to pass to the phpstan toolno

no outputs