@@ -19,13 +19,18 @@ More specifically this includes:
19
19
- phpstan/phpstan
20
20
- edgedesign/phpqa
21
21
22
+ There are curently 3 flavours [ published in Docker Hub] ( https://hub.docker.com/r/sbitio/php-qa/ ) :
23
+ - 8-bookworm: Based on PHP's ` 8-cli-bookworm ` tag
24
+ - 7-bulleye: Based on PHP's ` 7-cli-bullseye ` tag
25
+ - latest: Previous version to be deprecated in the future
26
+
22
27
## Usage
23
28
24
29
Note: This image does nothing when invoking it without a followup command, such as:
25
30
26
31
``` bash
27
32
cd < /path/to/desired/directory>
28
- docker run -it --rm -v " $PWD " :/app -w /app sbitio/php-qa:latest < desired-command-with-arguments>
33
+ docker run -it --rm -v " $PWD " :/app -w /app sbitio/php-qa:8-cli-bookworm < desired-command-with-arguments>
29
34
```
30
35
31
36
Windows users: The use of "$PWD" for present working directory will not work as expected, instead use the full path.
@@ -74,7 +79,7 @@ php -d memory_limit=1G
74
79
See https://github.com/EdgedesignCZ/phpqa for more usage details of this tool, its a very convenient wrapper for most of the tools included.
75
80
76
81
``` bash
77
- docker run -it --rm -v " $PWD " :/app -w /app sbitio/php-qa:latest \
82
+ docker run -it --rm -v " $PWD " :/app -w /app sbitio/php-qa:8-cli-bookworm \
78
83
phpqa --report offline
79
84
```
80
85
@@ -83,7 +88,7 @@ docker run -it --rm -v "$PWD":/app -w /app sbitio/php-qa:latest \
83
88
See https://github.com/sebastianbergmann/phploc for more usage details of this tool.
84
89
85
90
``` bash
86
- docker run -it --rm -v " $PWD " :/app -w /app sbitio/php-qa:latest \
91
+ docker run -it --rm -v " $PWD " :/app -w /app sbitio/php-qa:8-cli-bookworm \
87
92
phploc -v --names " *.php" \
88
93
--exclude " vendor" . > ./php_code_quality/phploc.txt
89
94
```
@@ -93,7 +98,7 @@ docker run -it --rm -v "$PWD":/app -w /app sbitio/php-qa:latest \
93
98
See https://phpmd.org/download/index.html for more usage details of this tool.
94
99
95
100
``` bash
96
- docker run -it --rm -v " $PWD " :/app -w /app sbitio/php-qa:latest \
101
+ docker run -it --rm -v " $PWD " :/app -w /app sbitio/php-qa:8-cli-bookworm \
97
102
phpmd . xml codesize --exclude ' vendor' \
98
103
--reportfile ' ./php_code_quality/phpmd_results.xml'
99
104
```
@@ -103,7 +108,7 @@ docker run -it --rm -v "$PWD":/app -w /app sbitio/php-qa:latest \
103
108
See https://pdepend.org/ for more usage details of this tool.
104
109
105
110
``` bash
106
- docker run -it --rm -v " $PWD " :/app -w /app sbitio/php-qa:latest \
111
+ docker run -it --rm -v " $PWD " :/app -w /app sbitio/php-qa:8-cli-bookworm \
107
112
pdepend --ignore=' vendor' \
108
113
--summary-xml=' ./php_code_quality/pdepend_output.xml' \
109
114
--jdepend-chart=' ./php_code_quality/pdepend_chart.svg' \
@@ -115,7 +120,7 @@ docker run -it --rm -v "$PWD":/app -w /app sbitio/php-qa:latest \
115
120
See https://github.com/sebastianbergmann/phpcpd for more usage details of this tool.
116
121
117
122
``` bash
118
- docker run -it --rm -v " $PWD " :/app -w /app sbitio/php-qa:latest \
123
+ docker run -it --rm -v " $PWD " :/app -w /app sbitio/php-qa:8-cli-bookworm \
119
124
phpcpd . \
120
125
--exclude ' vendor' > ./php_code_quality/phpcpd_results.txt
121
126
```
@@ -125,7 +130,7 @@ docker run -it --rm -v "$PWD":/app -w /app sbitio/php-qa:latest \
125
130
See http://www.phpmetrics.org/ for more usage details of this tool.
126
131
127
132
``` bash
128
- docker run -it --rm -v " $PWD " :/app -w /app sbitio/php-qa:latest \
133
+ docker run -it --rm -v " $PWD " :/app -w /app sbitio/php-qa:8-cli-bookworm \
129
134
phpmetrics --excluded-dirs ' vendor' \
130
135
--report-html=./php_code_quality/metrics_results .
131
136
```
@@ -135,7 +140,7 @@ docker run -it --rm -v "$PWD":/app -w /app sbitio/php-qa:latest \
135
140
See https://github.com/squizlabs/PHP_CodeSniffer/wiki for more usage details of this tool.
136
141
137
142
``` bash
138
- docker run -it --rm -v " $PWD " :/app -w /app sbitio/php-qa:latest \
143
+ docker run -it --rm -v " $PWD " :/app -w /app sbitio/php-qa:8-cli-bookworm \
139
144
phpcs -sv --extensions=php --ignore=vendor \
140
145
--report-file=./php_code_quality/codesniffer_results.txt .
141
146
```
@@ -146,7 +151,7 @@ See https://github.com/PHPCompatibility/PHPCompatibility and https://github.com/
146
151
usage details of this tool.
147
152
148
153
``` bash
149
- docker run -it --rm -v " $PWD " :/app -w /app sbitio/php-qa:latest sh -c \
154
+ docker run -it --rm -v " $PWD " :/app -w /app sbitio/php-qa:8-cli-bookworm sh -c \
150
155
' phpcs -sv --config-set installed_paths /usr/local/lib/php-qa/vendor/phpcompatibility/php-compatibility \
151
156
&& phpcs -sv --standard=' PHPCompatibility' --extensions=php --ignore=vendor . \
152
157
--report-file=./php_code_quality/phpcompatibility_results.txt .'
0 commit comments