1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 13:35:32 +02:00

phploc: add page (#2011)

This commit is contained in:
Owen Voke 2018-03-01 17:46:36 +00:00 committed by Agniva De Sarker
parent 3b19b0a84a
commit 64b2d40c0e

31
pages/common/phploc.md Normal file
View file

@ -0,0 +1,31 @@
# phploc
> A tool for quickly measuring the size and analyzing the structure of a PHP project.
- Analyse 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 {{files}}`
- Exclude specific files from a comma-separated list (globs are allowed):
`phploc {{path/to/directory}} --names-exclude {{files}}`
- 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`