From 64b2d40c0edc395539244299e9a03852e477d429 Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Thu, 1 Mar 2018 17:46:36 +0000 Subject: [PATCH] phploc: add page (#2011) --- pages/common/phploc.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pages/common/phploc.md diff --git a/pages/common/phploc.md b/pages/common/phploc.md new file mode 100644 index 000000000..ec2095187 --- /dev/null +++ b/pages/common/phploc.md @@ -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`