You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Include `--dev` in require commands
* Use the full term `global` instead of the shorthand `g`
* Mirror "Installation" section structure to the structure on WordPress/WordPress-Coding-Standards
[Composer](https://getcomposer.org/) will install the latest compatible versions of PHPCS, PHPCSUtils, PHPCSExtra, WPCS and VariableAnalysis and register the external standards with PHP_CodeSniffer.
27
+
28
+
Please refer to the [installation instructions for installing PHP_CodeSniffer for WordPress.com VIP](https://docs.wpvip.com/how-tos/code-review/php_codesniffer/) for more details.
29
+
30
+
As of VIPCS version 2.3.0, there is no need to `require` the [PHP_CodeSniffer Standards Composer Installer Plugin](https://github.com/PHPCSStandards/composer-installer) anymore as it is now a requirement of VIPCS itself. Permission to run the plugin will still need to be granted though when using Composer 2.2 or higher.
31
+
32
+
### Composer Project-based Installation
33
+
34
+
To install the VIP Coding Standards, run the following from the root of your project:
31
35
32
-
or if installing globally:
33
36
```bash
34
-
composer g config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
This will install the latest compatible versions of PHPCS, PHPCSUtils, PHPCSExtra, WPCS and VariableAnalysis and register the external standards with PHP_CodeSniffer.
41
+
## Composer Global Installation
39
42
40
-
Please refer to the [installation instructions for installing PHP_CodeSniffer for WordPress.com VIP](https://docs.wpvip.com/how-tos/code-review/php_codesniffer/) for more details.
43
+
Alternatively, it can be installed standard globally for use across multiple projects:
41
44
42
-
As of VIPCS version 2.3.0, there is no need to `require` the [PHP_CodeSniffer Standards Composer Installer Plugin](https://github.com/PHPCSStandards/composer-installer) anymore as it is now a requirement of VIPCS itself. Permission to run the plugin will still need to be granted though when using Composer 2.2 or higher.
45
+
```bash
46
+
composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
0 commit comments