PHPLOC(1)
β¨ NAME β¨
phploc β it's the PHPLOC command line interface, bestie π
(yes, this is the phploc(1) page, user commands section, we're fancy like that)
π¦ SYNOPSIS π¦
phploc [options] <directory>
πΈ DESCRIPTION πΈ
okay so basically you point phploc at a <directory> and it does its little analysis thing. but the real tea is in the options, and they come in three lil flavour groups. let's get into it π«Ά
π Options for selecting files π
--suffix <suffix>β include files with names ending in<suffix>in the analysis. the default is.php, and lowkey you can give this one multiple times if you're feeling extra.--exclude <path>β exclude files that have<path>anywhere in their path from the analysis. also can be given multiple times, no cap.
π₯ Options for analysing files π₯
--count-testsβ count PHPUnit test case classes and test methods. it's giving coverage-adjacent main character energy β¨
π 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>.
not me keeping every single flag, default, and file path exactly as it was β the facts stay iconic, only the vibe got a glow-up π
this page is from phploc 7.0.2, dated January 2022. go forth and analyse, queen ππ
π¦ where this page comes from
- ubuntu jammy: phploc 7.0.2-2 Β· BSD-3-Clause
- ubuntu noble: phploc 7.0.2-2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms