You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wiki/Requirements.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,12 @@ Additionally, PHP_CodeSniffer requires the following PHP extensions to be enable
5
5
-[Tokenizer][tokenizer]: used by the core tokenizer to process PHP files
6
6
-[SimpleXML][simplexml]: used to process ruleset XML files
7
7
-[XMLWriter][xmlwriter]: used to create some report formats
8
+
-[libxml]: required by the SimpleXML and XMLWriter extensions
8
9
9
10
The following PHP extensions are not required, but are strongly recommended:
11
+
-[DOM][dom]: used for displaying the sniff documentation via the `--generator=...` option.
10
12
-[iconv]: used for accurate character length calculation in files containing multibyte characters. Without this extension, some sniffs, like `Generic.Files.LineLength`, may report incorrect results for lines containing non-ASCII characters, as PHP_CodeSniffer will fall back to byte-based length calculations.
13
+
-[json]: required for the cache functionality, as well as for the JSON report output.
11
14
-[PCNTL][pcntl]: required for parallel processing via the `--parallel` CLI option. Without this extension, PHP_CodeSniffer will not be able to check multiple files simultaneously.
12
15
13
16
Individual sniffs may have additional requirements such as external applications and scripts. See the [Configuration Options](https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Configuration-Options) manual page for a list of these requirements.
@@ -18,8 +21,11 @@ Individual sniffs may have additional requirements such as external applications
0 commit comments