Skip to content

Commit 4d9f5b3

Browse files
author
Marc Paffen
committed
Anleitung aktualisiert
1 parent 27b6a00 commit 4d9f5b3

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@
22
HDNET Coding Standars für PHP
33

44
## Installation
5+
6+
Repository zu composer.json hinzufügen
7+
```
8+
"repositories": [
9+
{ "type": "github", "url": "https://github.com/HDNET/coding-standards" }
10+
]
11+
```
12+
513
```sh
6-
brew tap HDNET/homebrew-hdnet
7-
brew install hdnet-coding-standards
8-
brew install python3
9-
pip3 install pre-commit
14+
composer require --dev squizlabs/php_codesniffer ^3.0
15+
composer require --dev escapestudios/symfony2-coding-standard ^3.4
16+
composer require --dev hdnet/coding-standards 3.x-dev
1017
```
1118

1219
Im Projekt:
@@ -15,7 +22,11 @@ pre-commit einrichten: http://pre-commit.com/#usage
1522
pre-commit install
1623
```
1724
### Team Black
18-
CodingStandard setzen
19-
```sh
20-
phpcs --config-set default_standard HDNETBlack
25+
Datei .phpcs.xml anlegen für neue Projekte
26+
```xml
27+
<?xml version="1.0" encoding="UTF-8" ?>
28+
<ruleset name="Example">
29+
<config name="installed_paths" value="/app/vendor/escapestudios/symfony2-coding-standard/,/app/vendor/hdnet/coding-standards" />
30+
<rule ref="HDNETBlack"/>
31+
</ruleset>
2132
```

0 commit comments

Comments
 (0)