Skip to content

Commit c803f65

Browse files
committed
Updte README.md and file sample.
1 parent 41b0ff8 commit c803f65

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,17 @@ Library based in git hook scripts for PHP projects.
1616

1717
### Step 1: Composer
1818

19-
You must add the following line to the `composer.json` file:
19+
You must add the following line to the `composer.json` file to use with Symfony 3.0:
2020

2121
```json
2222
{
2323
"require-dev": {
24-
"bruli/php-git-hooks": "^2.0"
24+
"bruli/php-git-hooks": "~3.0"
2525
}
2626
}
2727
```
28+
You can use "~2.0" for Symfony version 2.X.
29+
2830
Or you can write in your console:
2931

3032
```bash

php-git-hooks.yml.sample

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ pre-commit:
1818
standard: PSR2
1919
phpmd: true
2020
composer: true
21+
message:
22+
right-message: 'HEY, GOOD JOB!!'
23+
error-message: 'FIX YOUR FUCKING CODE!!'
2124
commit-msg:
2225
enabled: true
2326
regular-expression: '#[0-9]{2,7}'

0 commit comments

Comments
 (0)