### Install PHPCompatibilityWP with Composer Source: https://github.com/phpcompatibility/phpcompatibilitywp/blob/master/README.md Install PHPCompatibilityWP and its dependencies using Composer. Ensure the PHPCS plugin is allowed. ```bash composer config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true composer require --dev phpcompatibility/phpcompatibility-wp:"^3.0@dev" ``` -------------------------------- ### Verify PHP_CodeSniffer Standards Installation Source: https://github.com/phpcompatibility/phpcompatibilitywp/blob/master/README.md After installation, verify that the PHPCompatibility standards are registered with PHP_CodeSniffer. ```bash vendor/bin/phpcs -i ``` -------------------------------- ### Run Basic PHPCompatibilityWP Check Source: https://github.com/phpcompatibility/phpcompatibilitywp/blob/master/README.md Perform a compatibility check on your project's code using the PHPCompatibilityWP standard. ```bash vendor/bin/phpcs -p . --standard=PHPCompatibilityWP ``` -------------------------------- ### Run PHPCompatibilityWP Check for Specific PHP Version Source: https://github.com/phpcompatibility/phpcompatibilitywp/blob/master/README.md Inspect your code for compatibility with a specific PHP version range. Replace '7.2-' with your target version. ```bash vendor/bin/phpcs -p . --standard=PHPCompatibilityWP --runtime-set testVersion 5.6- ``` -------------------------------- ### Run PHPCompatibilityWP Check for PHP Files Only Source: https://github.com/phpcompatibility/phpcompatibilitywp/blob/master/README.md Optimize the analysis by instructing PHP_CodeSniffer to only check PHP files, improving performance. ```bash vendor/bin/phpcs -p . --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 5.6- ``` -------------------------------- ### Upgrade PHPCompatibilityWP with Composer Source: https://github.com/phpcompatibility/phpcompatibilitywp/blob/master/README.md Upgrade the PHPCompatibilityWP package and its dependencies to the latest versions. ```bash composer update --dev phpcompatibility/phpcompatibility-wp --with-dependencies ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.