phploc
Quickly measure the size and analyzing the structure of a PHP project. tldr-pages
On several platforms
Several platforms
Analyze a directory and print the result
phploc path/to/directoryIdentifyInclude only specific files from a comma-separated list (globs are allowed)
phploc path/to/directory --names 'path/to/file1,path/to/file2,...'IdentifyExclude specific files from a comma-separated list (globs are allowed)
phploc path/to/directory --names-exclude 'path/to/file1,path/to/file2,...'IdentifyExclude a specific directory from analysis
phploc path/to/directory --exclude path/to/exclude_directoryIdentifyLog the results to a specific CSV file
phploc path/to/directory --log-csv path/to/fileIdentifyLog the results to a specific XML file
phploc path/to/directory --log-xml path/to/fileIdentifyCount PHPUnit test case classes and test methods
phploc path/to/directory --count-testsIdentify