1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-24 01:22:10 +02:00
tldr/pages/common/phploc.md
Vitor Henrique c8f956319f
pages*: simplify page description (#12149)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-02-14 21:25:13 +01:00

32 lines
968 B
Markdown

# phploc
> Quickly measure the size and analyzing the structure of a PHP project.
> More information: <https://github.com/sebastianbergmann/phploc>.
- Analyze a directory and print the result:
`phploc {{path/to/directory}}`
- Include only specific files from a comma-separated list (globs are allowed):
`phploc {{path/to/directory}} --names '{{path/to/file1,path/to/file2,...}}'`
- Exclude specific files from a comma-separated list (globs are allowed):
`phploc {{path/to/directory}} --names-exclude '{{path/to/file1,path/to/file2,...}}'`
- Exclude a specific directory from analysis:
`phploc {{path/to/directory}} --exclude {{path/to/exclude_directory}}`
- Log the results to a specific CSV file:
`phploc {{path/to/directory}} --log-csv {{path/to/file}}`
- Log the results to a specific XML file:
`phploc {{path/to/directory}} --log-xml {{path/to/file}}`
- Count PHPUnit test case classes and test methods:
`phploc {{path/to/directory}} --count-tests`