How To Install php-phpmd-PHP-PMD on Fedora 36

In this tutorial we learn how to install php-phpmd-PHP-PMD in Fedora 36. php-phpmd-PHP-PMD is PHPMD - PHP Mess Detector

Introduction

In this tutorial we learn how to install php-phpmd-PHP-PMD on Fedora 36.

What is php-phpmd-PHP-PMD

This is the project site of PHPMD. It is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD. PHPMD can be seen as an user friendly front-end application for the raw metrics stream measured by PHP Depend.

We can use yum or dnf to install php-phpmd-PHP-PMD on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-phpmd-PHP-PMD.

Install php-phpmd-PHP-PMD on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install php-phpmd-PHP-PMD using dnf by running the following command:

sudo dnf -y install php-phpmd-PHP-PMD

Install php-phpmd-PHP-PMD on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install php-phpmd-PHP-PMD using yum by running the following command:

sudo yum -y install php-phpmd-PHP-PMD

How To Uninstall php-phpmd-PHP-PMD on Fedora 36

To uninstall only the php-phpmd-PHP-PMD package we can use the following command:

sudo dnf remove php-phpmd-PHP-PMD

php-phpmd-PHP-PMD Package Contents on Fedora 36

/usr/bin/phpmd
/usr/share/doc/php-phpmd-PHP-PMD
/usr/share/doc/php-phpmd-PHP-PMD/AUTHORS.rst
/usr/share/doc/php-phpmd-PHP-PMD/CHANGELOG
/usr/share/doc/php-phpmd-PHP-PMD/README.rst
/usr/share/doc/php-phpmd-PHP-PMD/composer.json
/usr/share/licenses/php-phpmd-PHP-PMD
/usr/share/licenses/php-phpmd-PHP-PMD/LICENSE
/usr/share/php-phpmd-PHP-PMD
/usr/share/php-phpmd-PHP-PMD/resources
/usr/share/php-phpmd-PHP-PMD/resources/rulesets
/usr/share/php-phpmd-PHP-PMD/resources/rulesets/cleancode.xml
/usr/share/php-phpmd-PHP-PMD/resources/rulesets/codesize.xml
/usr/share/php-phpmd-PHP-PMD/resources/rulesets/controversial.xml
/usr/share/php-phpmd-PHP-PMD/resources/rulesets/design.xml
/usr/share/php-phpmd-PHP-PMD/resources/rulesets/naming.xml
/usr/share/php-phpmd-PHP-PMD/resources/rulesets/unusedcode.xml
/usr/share/php/PHPMD
/usr/share/php/PHPMD/AbstractNode.php
/usr/share/php/PHPMD/AbstractRenderer.php
/usr/share/php/PHPMD/AbstractRule.php
/usr/share/php/PHPMD/AbstractWriter.php
/usr/share/php/PHPMD/Baseline
/usr/share/php/PHPMD/Baseline/BaselineFileFinder.php
/usr/share/php/PHPMD/Baseline/BaselineMode.php
/usr/share/php/PHPMD/Baseline/BaselineSet.php
/usr/share/php/PHPMD/Baseline/BaselineSetFactory.php
/usr/share/php/PHPMD/Baseline/BaselineValidator.php
/usr/share/php/PHPMD/Baseline/ViolationBaseline.php
/usr/share/php/PHPMD/Exception
/usr/share/php/PHPMD/Exception/RuleClassFileNotFoundException.php
/usr/share/php/PHPMD/Exception/RuleClassNotFoundException.php
/usr/share/php/PHPMD/Exception/RuleSetNotFoundException.php
/usr/share/php/PHPMD/Node
/usr/share/php/PHPMD/Node/ASTNode.php
/usr/share/php/PHPMD/Node/AbstractCallableNode.php
/usr/share/php/PHPMD/Node/AbstractNode.php
/usr/share/php/PHPMD/Node/AbstractTypeNode.php
/usr/share/php/PHPMD/Node/Annotation.php
/usr/share/php/PHPMD/Node/Annotations.php
/usr/share/php/PHPMD/Node/ClassNode.php
/usr/share/php/PHPMD/Node/FunctionNode.php
/usr/share/php/PHPMD/Node/InterfaceNode.php
/usr/share/php/PHPMD/Node/MethodNode.php
/usr/share/php/PHPMD/Node/TraitNode.php
/usr/share/php/PHPMD/PHPMD.php
/usr/share/php/PHPMD/Parser.php
/usr/share/php/PHPMD/ParserFactory.php
/usr/share/php/PHPMD/ProcessingError.php
/usr/share/php/PHPMD/Renderer
/usr/share/php/PHPMD/Renderer/AnsiRenderer.php
/usr/share/php/PHPMD/Renderer/BaselineRenderer.php
/usr/share/php/PHPMD/Renderer/CheckStyleRenderer.php
/usr/share/php/PHPMD/Renderer/GitHubRenderer.php
/usr/share/php/PHPMD/Renderer/HTMLRenderer.php
/usr/share/php/PHPMD/Renderer/JSONRenderer.php
/usr/share/php/PHPMD/Renderer/RendererFactory.php
/usr/share/php/PHPMD/Renderer/SARIFRenderer.php
/usr/share/php/PHPMD/Renderer/TextRenderer.php
/usr/share/php/PHPMD/Renderer/XMLRenderer.php
/usr/share/php/PHPMD/Report.php
/usr/share/php/PHPMD/Rule
/usr/share/php/PHPMD/Rule.php
/usr/share/php/PHPMD/Rule/AbstractLocalVariable.php
/usr/share/php/PHPMD/Rule/ClassAware.php
/usr/share/php/PHPMD/Rule/CleanCode
/usr/share/php/PHPMD/Rule/CleanCode/BooleanArgumentFlag.php
/usr/share/php/PHPMD/Rule/CleanCode/DuplicatedArrayKey.php
/usr/share/php/PHPMD/Rule/CleanCode/ElseExpression.php
/usr/share/php/PHPMD/Rule/CleanCode/ErrorControlOperator.php
/usr/share/php/PHPMD/Rule/CleanCode/IfStatementAssignment.php
/usr/share/php/PHPMD/Rule/CleanCode/MissingImport.php
/usr/share/php/PHPMD/Rule/CleanCode/StaticAccess.php
/usr/share/php/PHPMD/Rule/CleanCode/UndefinedVariable.php
/usr/share/php/PHPMD/Rule/Controversial
/usr/share/php/PHPMD/Rule/Controversial/CamelCaseClassName.php
/usr/share/php/PHPMD/Rule/Controversial/CamelCaseMethodName.php
/usr/share/php/PHPMD/Rule/Controversial/CamelCaseParameterName.php
/usr/share/php/PHPMD/Rule/Controversial/CamelCasePropertyName.php
/usr/share/php/PHPMD/Rule/Controversial/CamelCaseVariableName.php
/usr/share/php/PHPMD/Rule/Controversial/Superglobals.php
/usr/share/php/PHPMD/Rule/CyclomaticComplexity.php
/usr/share/php/PHPMD/Rule/Design
/usr/share/php/PHPMD/Rule/Design/CountInLoopExpression.php
/usr/share/php/PHPMD/Rule/Design/CouplingBetweenObjects.php
/usr/share/php/PHPMD/Rule/Design/DepthOfInheritance.php
/usr/share/php/PHPMD/Rule/Design/DevelopmentCodeFragment.php
/usr/share/php/PHPMD/Rule/Design/EmptyCatchBlock.php
/usr/share/php/PHPMD/Rule/Design/EvalExpression.php
/usr/share/php/PHPMD/Rule/Design/ExitExpression.php
/usr/share/php/PHPMD/Rule/Design/GotoStatement.php
/usr/share/php/PHPMD/Rule/Design/LongClass.php
/usr/share/php/PHPMD/Rule/Design/LongMethod.php
/usr/share/php/PHPMD/Rule/Design/LongParameterList.php
/usr/share/php/PHPMD/Rule/Design/NpathComplexity.php
/usr/share/php/PHPMD/Rule/Design/NumberOfChildren.php
/usr/share/php/PHPMD/Rule/Design/TooManyFields.php
/usr/share/php/PHPMD/Rule/Design/TooManyMethods.php
/usr/share/php/PHPMD/Rule/Design/TooManyPublicMethods.php
/usr/share/php/PHPMD/Rule/Design/WeightedMethodCount.php
/usr/share/php/PHPMD/Rule/ExcessivePublicCount.php
/usr/share/php/PHPMD/Rule/FunctionAware.php
/usr/share/php/PHPMD/Rule/InterfaceAware.php
/usr/share/php/PHPMD/Rule/MethodAware.php
/usr/share/php/PHPMD/Rule/Naming
/usr/share/php/PHPMD/Rule/Naming/BooleanGetMethodName.php
/usr/share/php/PHPMD/Rule/Naming/ConstantNamingConventions.php
/usr/share/php/PHPMD/Rule/Naming/ConstructorWithNameAsEnclosingClass.php
/usr/share/php/PHPMD/Rule/Naming/LongClassName.php
/usr/share/php/PHPMD/Rule/Naming/LongVariable.php
/usr/share/php/PHPMD/Rule/Naming/ShortClassName.php
/usr/share/php/PHPMD/Rule/Naming/ShortMethodName.php
/usr/share/php/PHPMD/Rule/Naming/ShortVariable.php
/usr/share/php/PHPMD/Rule/UnusedFormalParameter.php
/usr/share/php/PHPMD/Rule/UnusedLocalVariable.php
/usr/share/php/PHPMD/Rule/UnusedPrivateField.php
/usr/share/php/PHPMD/Rule/UnusedPrivateMethod.php
/usr/share/php/PHPMD/RuleClassFileNotFoundException.php
/usr/share/php/PHPMD/RuleClassNotFoundException.php
/usr/share/php/PHPMD/RuleSet.php
/usr/share/php/PHPMD/RuleSetFactory.php
/usr/share/php/PHPMD/RuleSetNotFoundException.php
/usr/share/php/PHPMD/RuleViolation.php
/usr/share/php/PHPMD/TextUI
/usr/share/php/PHPMD/TextUI/Command.php
/usr/share/php/PHPMD/TextUI/CommandLineOptions.php
/usr/share/php/PHPMD/Utility
/usr/share/php/PHPMD/Utility/Paths.php
/usr/share/php/PHPMD/Utility/Strings.php
/usr/share/php/PHPMD/Writer
/usr/share/php/PHPMD/Writer/StreamWriter.php
/usr/share/php/PHPMD/autoload.php

References

Summary

In this tutorial we learn how to install php-phpmd-PHP-PMD on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).