How To Install Phpmd In Debian, Ubuntu, Kali, Fedora And Raspbian?
Maintainer: Debian PHP PEAR Maintainers
Email: [email protected] .
Website: http://phpmd.org
Section: php
Install phpmd
-
Debian
apt-get install phpmdClick to copy -
Ubuntu
apt-get install phpmdClick to copy -
Kali Linux
apt-get install phpmdClick to copy -
Fedora
dnf install phpmdClick to copy -
Raspbian
apt-get install phpmdClick to copy
A PHP mess detector that checks for common potential problems.
How to use phpmd?
Below are few example commands for phpmd that you can use in the terminal.
Display a list of available rulesets and formats:phpmdClick to copyScan a file or directory for problems using comma-separated rulesets:phpmd path/to/file_or_directory xml|text|html rulesetsClick to copySpecify the minimum priority threshold for rules:phpmd path/to/file_or_directory xml|text|html rulesets --minimumpriority priorityClick to copyInclude only the specified extensions in analysis:phpmd path/to/file_or_directory xml|text|html rulesets --suffixes extensionsClick to copyExclude the specified comma-separated directories:phpmd path/to/file_or_directory xml|text|html rulesets --exclude directory_patternsClick to copyOutput the results to a file instead of stdout:phpmd path/to/file_or_directory xml|text|html rulesets --reportfile path/to/report_fileClick to copyIgnore the use of warning-suppressive PHPDoc comments:phpmd path/to/file_or_directory xml|text|html rulesets --strictClick to copy
Installing phpmd command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Kali, Fedora and Raspbian operating systems. Once you run the command it will install the latest version of phpmd 2026 package in your OS.




