php-actions/PHP Code Sniffer (php-actions)
Run your PHP Code Sniffer tests in your Github Actions.
View on GitHubTrust Signals
- Scorecard Score
- Scorecard 2–4scored Jul 6, 2026
- Maintenance Recency
- Activelast commit Feb 10, 2026
- License
- None
Pinned Snippet
uses: php-actions/phpcs@0a99a2845164005c597c165cd45dc594d8fe6c1d # v1.0.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| version | What version of PHPCS to use | no | latest |
| php_version | What version of PHP to use | no | latest |
| vendored_phpcs_path | Path to a vendored phpcs binary | no | — |
| path | One or more files and/or directories to check | yes | — |
| standard | The name or path of the coding standard to use | yes | — |
| sniffs | A comma separated list of sniff codes to include checking (all sniffs must be part of the specified standard) | no | — |
| exclude | A comma separated list of sniff codes to exclude from checking (all sniffs must be part of the specified standard) | no | — |
| ignore | A comma separated list of patterns to ignore files and directories | no | — |
| tab_width | The number of spaces each tab represents | no | — |
| report | Print either the "full", "xml", "checkstyle", "csv", "json", "junit", "emacs", "source", "summary", "diff", "svnblame", "gitblame", "hgblame" or "notifysend" report, or specify the path to a custom report class, (the "full" report is printed by default) | yes | full |
| report_file | Write the report to the specified file path | no | — |
| report_width | How many columns wide screen reports should be printed or set to "auto" to use current screen width, where supported | no | — |
| basepath | A path to strip from the front of file paths inside reports | no | — |
| bootstrap | A comma separated list of files to run before processing begins | no | — |
| encoding | The encoding of the files being checked (default is utf-8) | no | — |
| extensions | A comma separated list of file extensions to check. The type of the file can be specified using: ext/type e.g., module/php,es/js | no | — |
| severity | The minimum severity required to display an error or warning | no | — |
| error_severity | The minimum severity required to display an error | no | — |
| warning_severity | The minimum severity required to display a warning | no | — |
| ignore_warnings_on_exit | Exit with a zero error code despite the presence of warnings | no | — |
| ignore_errors_on_exit | Exit with a zero error code despite the presence of errors | no | — |
| args | Extra arguments to pass to the phpcs binary | no | — |
Outputs
no outputs