Skip to content

Commit

Permalink
README: update for Composer 2.2
Browse files Browse the repository at this point in the history
The `dealerdirect/phpcodesniffer-composer-installer` Composer plugin is a non-dev requirement for YoastCS.

As of Composer 2.2.0, Composer plugins need to be explicitly allowed to run.

This commit adds the CLI command to set those permissions to the installation instructions.

Refs:
* https://blog.packagist.com/composer-2-2/#more-secure-plugin-execution
  • Loading branch information
jrfnl committed Feb 17, 2022
1 parent 153e66b commit 5960ad9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Composer will automatically install dependencies, register standards paths, and
To include standards as part of a project require them as development dependencies:

```bash
composer config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer require --dev yoast/yoastcs:"^2.0"
```

Expand Down

0 comments on commit 5960ad9

Please sign in to comment.