mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-05 17:55:56 +00:00
Update cheatsheets
This commit is contained in:
37
phploc
Normal file
37
phploc
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# phploc
|
||||
|
||||
> Quickly measure 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 '{{path/to/file1,path/to/file2,...}}'`
|
||||
|
||||
- Exclude specific files from a comma-separated list (globs are allowed):
|
||||
|
||||
`phploc {{path/to/directory}} --names-exclude '{{path/to/file1,path/to/file2,...}}'`
|
||||
|
||||
- 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`
|
||||
Reference in New Issue
Block a user