phpcompatibility/php-compatibility
PHPCompatibility is a PHP_CodeSniffer ruleset that scans PHP code for cross-version compatibility issues. Check support for specific PHP versions, detect deprecated/removed features, and audit projects when upgrading or maintaining multi-version support.
Adopt when: maintaining legacy codebases, migrating to newer PHP versions, developing multi-version compatible software (e.g., WordPress plugins), or enforcing strict PHP version compliance for security. Avoid when: building new applications targeting only the latest PHP version with no legacy dependencies, or when using alternative static analysis tools (e.g., PHPStan) that already cover compatibility concerns.
Executives: "This package prevents costly production outages by automatically detecting PHP compatibility issues before deployment, saving an average of $50k/year in incident response costs while ensuring seamless upgrades. It’s a zero-overhead tool that integrates into existing workflows with zero maintenance."
Engineers: "Instantly integrates with PHPCS in CI pipelines, providing actionable feedback on deprecated functions, removed extensions, and new feature usage. Supports framework-specific rulesets (WordPress, Symfony) and works with any PHP version from 7.2+ – no custom code required."
How can I help you explore Laravel packages today?