Examples (7)
Analyze a directory and print the result
phploc path/to/directoryInclude 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_directoryLog the results to a specific CSV file
phploc path/to/directory --log-csv path/to/fileLog the results to a specific XML file
phploc path/to/directory --log-xml path/to/fileCount PHPUnit test case classes and test methods
phploc path/to/directory --count-testsmade by @shridhargupta | data from tldr-pages