NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1769 most downloaded on Packagist
Run phpcs on files, but only report warnings/errors from lines which were changed.
Latest stable
v3.1.0
Last release 2 months ago
22 Sep 2026
Release timing varies
gaps range from 1 weeks to 8 months
Nearly every release is documented
notes for 37 of 41 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
53 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
Add --no-batch option to run phpcs on each file at its real path by @sirbrillig in https://github.com/sirbrillig/phpcs-changed/pull/134
Full Changelog: https://github.com/sirbrillig/phpcs-changed/compare/v3.0.2...v3.1.0
Stop pinning advisory-affected PHPCS versions in the test matrix by @sirbrillig in https://github.com/sirbrillig/phpcs-changed/pull/126
[!IMPORTANT] I forgot to bump the version number in the script itself, so this version will still self-report as 3.0.1.
Full Changelog: https://github.com/sirbrillig/phpcs-changed/compare/v3.0.1...v3.0.2
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Escape file name in checkstyle report output by @ralucaStan in https://github.com/sirbrillig/phpcs-changed/pull/117
Full Changelog: https://github.com/sirbrillig/phpcs-changed/compare/v3.0.0...v3.0.1
This release runs phpcs exactly once no matter how many files are being scanned, resulting in a major performance boost.
This release runs phpcs exactly once no matter how many files are being scanned, resulting in a major performance boost.
Full Changelog: https://github.com/sirbrillig/phpcs-changed/compare/v2.13.0...v3.0.0
Add WindowsShell for native Windows support without WSL by @sirbrillig in https://github.com/sirbrillig/phpcs-changed/pull/112
Full Changelog: https://github.com/sirbrillig/phpcs-changed/compare/v2.12.0...v2.13.0
Add Junit XML reporter by @sirbrillig in https://github.com/sirbrillig/phpcs-changed/pull/107
Full Changelog: https://github.com/sirbrillig/phpcs-changed/compare/v2.11.8...v2.12.0
Git Workflow: do not use just the filename, but full path in reporting by @david-binda in https://github.com/sirbrillig/phpcs-changed/pull/105
Full Changelog: https://github.com/sirbrillig/phpcs-changed/compare/v2.11.7...v2.11.8
Update require for phpcodesniffer-composer-installer to allow 1.0 by @sirbrillig in https://github.com/sirbrillig/phpcs-changed/pull/103
Full Changelog: https://github.com/sirbrillig/phpcs-changed/compare/v2.11.6...v2.11.7
Fix PHP 8.4 deprecation warnings by @TomA-R in https://github.com/sirbrillig/phpcs-changed/pull/102
Full Changelog: https://github.com/sirbrillig/phpcs-changed/compare/v2.11.5...v2.11.6
Fixed typo when checking if the field diffFile is empty. by @dmitr1y in https://github.com/sirbrillig/phpcs-changed/pull/99
diffFile is empty. by @dmitr1y in https://github.com/sirbrillig/phpcs-changed/pull/99empty() and some isset() calls by @sirbrillig in https://github.com/sirbrillig/phpcs-changed/pull/100Full Changelog: https://github.com/sirbrillig/phpcs-changed/compare/v2.11.4...v2.11.5
Do not use an optional parameter in LintMessage's constructor by @xknown in https://github.com/sirbrillig/phpcs-changed/pull/97
Do not try to validate runtime options when loading bin script
## Changelog - Fix no-vendor-phpcs flag
Fix git status check for unchanged tracked file
This has some pretty large refactors of svn and git workflow functionality, although they shouldn't be visible to users if I did everything right. The
This has some pretty large refactors of svn and git workflow functionality, although they shouldn't be visible to users if I did everything right. These should pave the way for adding support for Windows without WSL and generally separate concerns more clearly in the code.
In addition, this release adds options to override the executable paths (https://github.com/sirbrillig/phpcs-changed/pull/79) and defaults to auto-detecting the phpcs executable if it's in a vendor directory (https://github.com/sirbrillig/phpcs-changed/pull/81).
Finally, this release adds the '--extensions' option to use in PHPCS and for allowed extensions (https://github.com/sirbrillig/phpcs-changed/pull/86).
Add '--extensions' option to use in PHPCS and for allowed extensions
This has some pretty large refactors of svn and git workflow functionality, although they shouldn't be visible to users if I did everything right. The
This has some pretty large refactors of svn and git workflow functionality, although they shouldn't be visible to users if I did everything right. These should pave the way for adding support for Windows without WSL and generally separate concerns more clearly in the code.
In addition, this release adds options to override the executable paths (https://github.com/sirbrillig/phpcs-changed/pull/79) and defaults to auto-detecting the phpcs executable if it's in a vendor directory (https://github.com/sirbrillig/phpcs-changed/pull/81).
Use full path command for git cat-file command
Replace JS-style var interpolation with PHP-style
First pass at passing in error and warning severity to phpcs
First pass at passing in error and warning severity to phpcs
Add arc-lint option and improve some git performance
Cache svn previous file by last changed version
## Changelog - Add caching of phpcs results
Refactor CacheInterface so that it deals only with a value object
## Changelog - Add caching of phpcs results
Fetch correct old file versions when using git-base #43 (props @anomiex)
## Changelog - Add git-base option
Use different commands for new files based on git mode
## Changelog - Add git-branch option to help (#34) - Fix git filename detection
This release adds support for comparing git branches instead of uncommitted changes as well as scanning for non-.php files in the same way as phpcs. B
This release adds support for comparing git branches instead of uncommitted changes as well as scanning for non-.php files in the same way as phpcs. Big thanks to @david-binda for these improvements!
The main update in this release is support for unstaged git changes.
The main update in this release is support for unstaged git changes.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Make sure to only include one of each file in reporters
Allow running on multiple files
Nothing published for this version
Add --stdin-path argument to phpcs command
Add --stdin-path argument to phpcs command
--stdin-path argument to phpcs command (#14)Downgrades required PHP version to 7.1
This release just makes sure that reporters have full control of what is printed, even in the case of files which have no changes. So using --report j
This release just makes sure that reporters have full control of what is printed, even in the case of files which have no changes. So using --report json --svn will still output JSON even on a file that has no changes. This can be very important for scripts that use the output of phpcs-changed.
It also adds static analysis (with phpstan) to the CI, to help catch any subtle bugs.
Nothing published for this version
Nothing published for this version
Use the - flag for checking STDIN (#10) props @david-binda
- flag for checking STDIN (#10) props @david-binda(2.2.1 is the same bug I forgot to bump the version string so this fixes that issue)
(2.2.1 is the same bug I forgot to bump the version string so this fixes that issue)
Nothing published for this version
## Changelog - Add git workflow
Nothing published for this version
This is mostly a refactor of some of the existing svn workflow to give it test coverage, but it does add a --version option to the CLI so now you can
This is mostly a refactor of some of the existing svn workflow to give it test coverage, but it does add a --version option to the CLI so now you can see what version of phpcs-changed is being run.
## Changelog - Support new files in svn mode
Added new getNewPhpcsMessagesFromFiles() top-level function which provides a more clean abstraction over the library's internals.
getNewPhpcsMessagesFromFiles() top-level function which provides a more clean abstraction over the library's internals.--report option to allow json and phpcs "full" reporting (default is now full, to match phpcs).json report now prints output even if there are no messages (full report does not).Nothing published for this version
One column per quarter.