- Wim Godden
- GNU Lesser General Public License v3.0 (LGPL)
PHPCompatibility is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.
It will allow you to analyse your code for compatibility with higher and lower versions of PHP.
Install from a Composer package as a dev dependency (with Composer)
Make sure you have Composer installed.
Require it as a dev dependency:
composer require --dev wimg/php-compatibility:dev-feature/fix-102-107-directory-layout
Inform PHPCS about the new standard:
php vendor/bin/phpcs --config-set installed_paths vendor/wimg/php-compatibility
php vendor/bin/phpcs --standard=PHPCompatibility