Skip to content

Commit

Permalink
Added note about setting phpcs install path when installing globally.
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonF committed Jul 27, 2017
1 parent 3a10b8c commit b1f47e6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ composer require bolt/codingstyle squizlabs/php_codesniffer escapestudios/symfon
```
Add a `global` before `require` if you want to install it globally.

If installing globally you also need to configure the `installed_paths`:
```
phpcs --config-set installed_paths "$(composer config --global data-dir)"
```

Then create a CodeSniffer config file named `phpcs.xml.dist`:
```xml
<?xml version="1.0"?>
Expand Down

0 comments on commit b1f47e6

Please sign in to comment.