Skip to content

Commit 9e1ced9

Browse files
committed
docs: add direct vendor/bin usage before composer scripts
1 parent 9732cd6 commit 9e1ced9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,16 @@ $rules = \IxDFCodingStandard\PhpCsFixer\Rules::get();
6969

7070
## Usage
7171

72-
Add composer scripts to your `composer.json`:
72+
```shell
73+
vendor/bin/phpcs # check with PHP_CodeSniffer
74+
vendor/bin/phpcbf # fix with PHP_CodeSniffer
75+
vendor/bin/php-cs-fixer fix --dry-run --diff # check with PHP-CS-Fixer
76+
vendor/bin/php-cs-fixer fix # fix with PHP-CS-Fixer
77+
```
78+
79+
### Composer scripts (recommended)
80+
81+
Add to your `composer.json`:
7382

7483
```json
7584
"scripts": {

0 commit comments

Comments
 (0)