1
1
# PHP Parallel Lint
2
- This tool check syntax of PHP files faster then serial check with fancier output.
3
2
4
- Running parallel jobs in PHP inspired by Nette framework tests.
3
+ This tool checks syntax of PHP files faster than serial check with a fancier output.
4
+
5
+ Running parallel jobs in PHP is inspired by Nette framework tests.
5
6
6
7
## Install
8
+
7
9
Just run the following command to install it:
8
10
9
11
composer require --dev jakub-onderka/php-parallel-lint
@@ -13,32 +15,36 @@ For colored output install the suggested package `jakub-onderka/php-console-high
13
15
composer require --dev jakub-onderka/php-console-highlighter
14
16
15
17
## Example output
16
- ![ Alt text] ( /tests/examples/example-images/use-error.png?raw=true " Example use of tool with error ")
18
+
19
+ ![ Example use of tool with error] ( /tests/examples/example-images/use-error.png?raw=true " Example use of tool with error ")
17
20
18
21
19
22
## Options for run
23
+
20
24
- ` -p <php> ` Specify PHP-CGI executable to run (default: 'php').
21
25
- ` -s, --short ` Set short_open_tag to On (default: Off).
22
- - ` -a, -asp ` Set asp_tags to On (default: Off).
26
+ - ` -a, -- asp ` Set asp_tags to On (default: Off).
23
27
- ` -e <ext> ` Check only files with selected extensions separated by comma. (default: php,php3,php4,php5,phtml)
24
28
- ` --exclude ` Exclude a file or directory. If you want exclude multiple items, use multiple exclude parameters.
25
29
- ` -j <num> ` Run <num > jobs in parallel (default: 10).
30
+ - ` --colors ` Force enable colors in console output.
26
31
- ` --no-colors ` Disable colors in console output.
27
32
- ` --json ` Output results as JSON string (require PHP 5.4).
28
33
- ` --blame ` Try to show git blame for row with error.
29
34
- ` --git <git> ` Path to Git executable to show blame message (default: 'git').
30
35
- ` --stdin ` Load files and folder to test from standard input.
31
36
- ` --ignore-fails ` Ignore failed tests.
32
37
- ` -h, --help ` Print this help.
33
- - ` -V, --version ` Display this application version
38
+ - ` -V, --version ` Display this application version.
34
39
35
40
36
41
## Recommended setting for usage with Symfony framework
42
+
37
43
For run from command line:
38
44
39
- ```
40
- ./bin/parallel-lint --exclude app --exclude vendor .
41
- ```
45
+
46
+ ./bin/parallel-lint --exclude app --exclude vendor .
47
+
42
48
43
49
or setting for ANT:
44
50
@@ -59,17 +65,18 @@ or setting for ANT:
59
65
```
60
66
61
67
## Create Phar package
68
+
62
69
PHP Parallel Lint supports [ Box app] ( https://box-project.github.io/box2/ ) for creating Phar package. First, install box app:
63
70
64
- ```
65
- curl -LSs https://box-project.github.io/box2/installer.php | php
66
- ```
71
+
72
+ curl -LSs https://box-project.github.io/box2/installer.php | php
73
+
67
74
68
75
and then run this command in parallel lint folder, which creates ` parallel-lint.phar ` file.
69
76
70
- ```
71
- box build
72
- ```
77
+
78
+ box build
79
+
73
80
74
81
------
75
82
0 commit comments