LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

phpmd

PHP Mess Detector

TLDR

Check for issues
$ phpmd [src/] text [cleancode,codesize]
copy
Generate HTML report
$ phpmd [src/] html [rulesets] --reportfile [report.html]
copy
Use ruleset file
$ phpmd [src/] text [phpmd.xml]
copy
Exclude directory
$ phpmd [src/] text [rulesets] --exclude [vendor]
copy

SYNOPSIS

phpmd source format rulesets [options]

DESCRIPTION

phpmd is PHP Mess Detector. Finds potential problems in code.The tool detects code smells. Complexity and design issues.

PARAMETERS

SOURCE

Source files or directory.
FORMAT
Output format (text, xml, html).
RULESETS
Rules to apply.
--reportfile FILE
Output file.
--exclude PATTERN
Exclude pattern.
--help
Display help.

INSTALL

brew install phpmd
copy

CAVEATS

Configurable rules. Can produce false positives.

HISTORY

PHPMD was created for detecting PHP code issues and maintainability problems.

SEE ALSO

phpcs(1), phan(1), phpstan(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid