Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 19, 2024 via composer

phpmd/phpmd 2.15.0

PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD.
Package summary
Share
0
issues
2
licenses
13
MIT
2
BSD-3-Clause
Package created
8 Sep 2012
Version published
11 Dec 2023
Maintainers
3
Total deps
15
Direct deps
2
License
BSD-3-Clause

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
13 Packages, Including:
composer/pcre@3.1.3
composer/xdebug-handler@3.0.5
psr/container@2.0.2
psr/log@3.0.0
symfony/config@v7.0.7
symfony/dependency-injection@v7.0.7
symfony/deprecation-contracts@v3.5.0
symfony/filesystem@v7.0.7
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/process@v7.0.7
symfony/service-contracts@v3.5.0
symfony/var-exporter@v7.0.7

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
pdepend/pdepend@2.16.2
phpmd/phpmd@2.15.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of phpmd/phpmd 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
composer/xdebug-handler3.0.5-MIT
prod
pdepend/pdepend2.16.2550.9 kBBSD-3-Clause
prod

Visualizations

Frequently Asked Questions

What does phpmd/phpmd do?

PHPMD, the PHP equivalent of the well-known Java tool PMD, is a user-friendly frontend application that measures the raw metrics stream of your PHP code. As a spin-off project of PHP Depend, it offers the functionality to provide insights into potential issues with your PHP code such as possible bugs, dead code, suboptimal or overcomplicated code, and more. The goal is to help you create better, more manageable, and more robust PHP code.

How do you use phpmd/phpmd?

To utilize the functionality of PHPMD, you need to install it and run it via the command line. The basic command line usage would look like this:

phpmd [filename|directory[,filename|directory[,...]]] [report format] [ruleset file]

The example in the given readme is:

phpmd php/PDepend/DbusUI/ xml rulesets.xml

In this context, php/PDepend/DBusUI/ refers to the targeted directory, xml is the report format, and rulesets.xml is your ruleset file. You can provide multiple directories or filenames separated by comma. PHPMD also accepts various optional command-line arguments such as --verbose, --minimumpriority, --reportfile, etc.

For instance, If you want to use the built-in codesize rule and generate a report named phpmd.xml, you would execute the command as follows:

phpmd PHP/Depend/DbusUI xml codesize --reportfile "phpmd.xml"

You can even configure your own combination of rule sets. PHPMD allows you to use multiple rule sets, built-in sets, and even custom rule set files. Here's an example of how you can use multiple rule sets and custom rule set files:

phpmd /path/to/source text codesize,/my/rules.xml

Where are the phpmd/phpmd docs?

The PHPMD documentation can be found on the official website, phpmd.org. It contains comprehensive guidelines on how to utilize the tool effectively, how to set up different rule sets, and more details about its functions and features. For users looking to contribute to the project, there's a contribution guide linked within the GitHub repository's readme.