PHPCompatibility

Author(s)
Wim Godden
Website
https://github.com/wimg/PHPCompatibility
License
GNU Lesser General Public License v3.0 (LGPL)
GitHub
wimg/PHPCompatibility
Packagist
wimg/php-compatibility
DockerHub
phpqa/php-compatibility

0 0 0

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.

Installation

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
Run it:
php vendor/bin/phpcs --standard=PHPCompatibility