phploc

phploc

TLDR

Analyse a directory and print the result

$ phploc [path/to/directory]
copy

Include only specific files from a comma-separated list (globs are allowed)

$ phploc [path/to/directory] --names [files]
copy

Exclude specific files from a comma-separated list (globs are allowed)

$ phploc [path/to/directory] --names-exclude [files]
copy

Exclude a specific directory from analysis

$ phploc [path/to/directory] --exclude [path/to/exclude_directory]
copy

Log the results to a specific CSV file

$ phploc [path/to/directory] --log-csv [path/to/file]
copy

Log the results to a specific XML file

$ phploc [path/to/directory] --log-xml [path/to/file]
copy

Count PHPUnit test case classes and test methods

$ phploc [path/to/directory] --count-tests
copy

SYNOPSIS

phploc [options] <directory>

DESCRIPTION

Options for selecting files:

--suffix <suffix> Include files with names ending in <suffix> in the analysis

(default: .php; can be given multiple times)

--exclude <path>

Exclude files with <path> in their path from the analysis (can be given multiple times)

Options for analysing files:

--count-tests

Count PHPUnit test case classes and test methods

Options for report generation:

--log-csv <file>

Write results in CSV format to <file>

--log-json <file> Write results in JSON format to <file>

--log-xml <file>

Write results in XML format to <file>

Copied to clipboard
Raspberry