NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #528 most downloaded on Packagist
A ruleset for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.
Last release 9 months ago
16 Dec 2025
Ships fairly regularly
a new release about every 5 months
Nearly every release is documented
notes for 11 of 11 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
13 releases · first in 2018
Ruleset: Updated for improved compatibility with WordPress 6.5 and for compatibility with WordPress 6.8 and 6.9. Thanks @rodrigoprimo !
Composer: All PHPCompatibility dependencies have been updated to the recently released PHPCompatibility 10.0.0-alpha1 based versions. Note: in select
<exclude> rules in a project's [.]phpcs.xml[.dist] configuration file may needs to be updated.// phpcs:ignore comments used inline may need to be updated with the new sniff code(s).require-dev in place for this plugin in your own composer.json, it is strongly recommended to remove this to prevent conflicting version constraints.installed_paths configuration, or set the installed_paths in your [.]phpcs.xml[.dist] configuration file, it is recommended you remove this in favour of letting the Composer PHPCS plugin handle this.One column per quarter.
The ruleset now includes schema tags.
This is a maintenance release.
Ruleset: Prevent deprecation notice on PHP_CodeSniffer 3.13.0+.
README: Fixed some broken badges.
This is a maintenance release.
Ruleset: Updated for compatibility with WordPress 6.5. Thanks @swissspidy .
^1.0.Composer: The package will now identify itself as a static analysis tool. Thanks @GaryJones !
Ruleset: Updated for compatibility with WordPress 5.9.
Ruleset: Updated for compatibility with WordPress 5.8.
The recommended version of the Composer PHPCS plugin is now ^0.7.0 , which offers compatibility with Composer 2.0.
^0.7.0, which offers compatibility with Composer 2.0.Ruleset: Updated for the Sodium_Compat polyfill which is included in WordPress 5.2.
^0.5.0.Ruleset: Updated for compatibility with PHPCompatibility 9.0+.
Initial release of the PHPCompatibilityWP ruleset.
Initial release of the PHPCompatibilityWP ruleset.
Your coding agent can read these notes before it upgrades. Set up the MCP server →