Skip to content

Commit e9ce700

Browse files
authored
Merge pull request #22 from DealerDirect/docs/issue-16
Improvements to the documentation
2 parents 526b9c8 + 219a209 commit e9ce700

File tree

1 file changed

+26
-20
lines changed

1 file changed

+26
-20
lines changed

README.md

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,19 @@ _Note: This plugin is compatible with both version 2.x and 3.x of_ [PHP_CodeSnif
1919

2020
## Usage
2121

22-
Add the following lines to your `composer.json` file:
22+
Installation can be done with [composer], by requiring this package as a development dependency:
2323

24-
```json
25-
"require-dev": {
26-
"squizlabs/php_codesniffer": "^2.0.0",
27-
"dealerdirect/phpcodesniffer-composer-installer" : "*",
28-
"frenck/php-compatibility": "*"
29-
}
24+
```bash
25+
composer require --dev dealerdirect/phpcodesniffer-composer-installer frenck/php-compatibility
3026
```
3127

28+
### Caveats
29+
30+
When this plugin is installed globally, composer will load the _global_ plugin rather
31+
than the one from the local repository. Despite [this behaviour being documented
32+
in the composer manual][using-composer-plugins], it could potentially cause confusion
33+
as an version of the plugin could be run other than the version specified by the project.
34+
3235
## Developing Coding Standards
3336

3437
Coding standard can be developed normally, as documented by [PHP_CodeSniffer][codesniffer], in the [Coding Standard Tutorial][tutorial].
@@ -103,23 +106,26 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
103106
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
104107
THE SOFTWARE.
105108

106-
[project-stage-shield]: https://img.shields.io/badge/Project%20Stage-Development-yellowgreen.svg
107-
[maintenance-shield]: https://img.shields.io/maintenance/yes/2017.svg
108109
[awesome-shield]: https://img.shields.io/badge/awesome%3F-yes-brightgreen.svg
110+
[composer]: https://getcomposer.org/
111+
[codesniffer]: https://github.com/squizlabs/PHP_CodeSniffer
112+
[contributing-guidelines]: CONTRIBUTING.md
113+
[contributors]: https://github.com/dealerdirect/phpcodesniffer-composer-installer/graphs/contributors
114+
[frenck]: https://github.com/frenck
115+
[get-in-touch]: http://workingatdealerdirect.eu/open-sollicitatie/
109116
[license-shield]: https://img.shields.io/github/license/dealerdirect/phpcodesniffer-composer-installer.svg
110-
[scrutinizer-shield]: https://img.shields.io/scrutinizer/g/DealerDirect/phpcodesniffer-composer-installer.svg
111-
[scrutinizer]: https://scrutinizer-ci.com/g/DealerDirect/phpcodesniffer-composer-installer/
112-
[versioneye-shield]: https://www.versioneye.com/user/projects/580be0d1d65a7716b613a790/badge.svg
113-
[versioneye]: https://www.versioneye.com/user/projects/580be0d1d65a7716b613a790
117+
[maintenance-shield]: https://img.shields.io/maintenance/yes/2017.svg
114118
[packagist-shield]: https://img.shields.io/packagist/dt/dealerdirect/phpcodesniffer-composer-installer.svg
115-
[packagist]: https://packagist.org/packages/dealerdirect/phpcodesniffer-composer-installer
116119
[packagist-version-shield]: https://img.shields.io/packagist/v/dealerdirect/phpcodesniffer-composer-installer.svg
117120
[packagist-version]: https://packagist.org/packages/dealerdirect/phpcodesniffer-composer-installer
118-
[contribution-guidelines]: CONTRIBUTING.md
119-
[frenck]: https://github.com/frenck
120-
[contributors]: https://github.com/dealerdirect/phpcodesniffer-composer-installer/graphs/contributors
121+
[packagist]: https://packagist.org/packages/dealerdirect/phpcodesniffer-composer-installer
122+
[project-stage-shield]: https://img.shields.io/badge/Project%20Stage-Development-yellowgreen.svg
123+
[scrutinizer-shield]: https://img.shields.io/scrutinizer/g/DealerDirect/phpcodesniffer-composer-installer.svg
124+
[scrutinizer]: https://scrutinizer-ci.com/g/DealerDirect/phpcodesniffer-composer-installer/
125+
[tutorial]: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Coding-Standard-Tutorial
126+
[using-composer-plugins]: https://getcomposer.org/doc/articles/plugins.md#using-plugins
121127
[vacancies]: http://workingatdealerdirect.eu/?post_type=vacancy&s=&department=99
122-
[get-in-touch]: http://workingatdealerdirect.eu/open-sollicitatie/
128+
[versioneye-shield]: https://www.versioneye.com/user/projects/580be0d1d65a7716b613a790/badge.svg
129+
[versioneye]: https://www.versioneye.com/user/projects/580be0d1d65a7716b613a790
123130
[workingatdealerdirecteu]: http://www.workingatdealerdirect.eu
124-
[tutorial]: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Coding-Standard-Tutorial
125-
[codesniffer]: https://github.com/squizlabs/PHP_CodeSniffer
131+

0 commit comments

Comments
 (0)