File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 11# laravel-php-code-analysis-hook
22A GIT pre-commit hook for running php code sniffer, php mess detector and phpunit before a commit can be accepted.
3+
4+ ## Installation
5+ Add the repository to your composer.json
6+
7+ ```
8+ "repositories": [
9+ {
10+ "url": "https://github.com/coding-pioneers/laravel-php-code-analysis-hook.git",
11+ "type": "git"
12+ } ]
13+ ```
14+ Add the following line to your composer.json to the require-dev-section
15+ ```
16+ "coding-pioneers/laravel-php-code-analysis-hook": "@dev"
17+ ```
18+ Then run ` composer update `
19+
20+ To add the new git-hook to your repository run the following command
21+ ```
22+ vendor/bin/symlink-git-hooks-to-hub
23+ ```
24+ Now your source code is being checked before the commit.
25+
26+ ##Uninstall
27+ Remove the link to the pre-commit-hook with the following command
28+ ```
29+ vendor/bin/remove-git-hook
30+ ```
31+ Then remove the following line from your composer.json
32+ ```
33+ "coding-pioneers/laravel-php-code-analysis-hook": "@dev"
34+ ```
35+ Then run ` composer update `
You can’t perform that action at this time.
0 commit comments