phploc
A tool for quickly measuring the size and analyzing the structure of a PHP project. More information: <https://github.com/sebastianbergmann/phploc>.
Install
- All systems
-
curl cmd.cat/phploc.sh
- Debian
-
apt-get install phploc
- Ubuntu
-
apt-get install phploc
- Kali Linux
-
apt-get install phploc
- Fedora
-
dnf install phploc
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install phploc
- Raspbian
-
apt-get install phploc
- Dockerfile
- dockerfile.run/phploc
A tool for quickly measuring the size and analyzing the structure of a PHP project. More information: <https://github.com/sebastianbergmann/phploc>.
-
Analyze 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
© tl;dr; authors and contributors