FREEDOM251

Freedom251 › Compare

Side by side

ESLint vs PHPMD

Both stand on linters. Which one you can start free with, which one lets you read the code, and what each costs once you pay.

ESLint

Free plan APIExtensionSelf-hosted

ESLint offers configurable JavaScript analysis with automatic fixes and broad documented integrations. Confirm the Node.js requirement and version-support window fit your environment.

Visit ESLint

PHPMD

Free plan LinuxMacSelf-hosted+1

Choose PHPMD for free PHP source analysis with predefined and custom rules, plus CI reporting options. It supports several operating systems and self-hosted use. Look elsewhere if you need automatic fixes or IDE support.

Visit PHPMD

The facts

ESLintPHPMD
Free planYesYes
Open sourceNot publishedNot published
Runs onAPI, Extension, Self-hostedLinux, Mac, Self-hosted, Windows
Lowest paid planFree or on requestFree or on request
Plans published11
MakerNot publishedNot published
Websiteeslint.orgphpmd.org
On linters#12 of 33#16 of 33

ESLint: what it does well

  • Free, open-source JavaScript linting utility.
  • Many problems can be fixed automatically.
  • Rules, parsers, and formatters are customizable.
  • Documented integrations cover editors, build tools, and CI.
  • Node.js API enables programmatic linting.

What to know first

  • Requires Node.js ^20.19.0, ^22.13.0, or >=24.
  • Node.js must include SSL and ICU support.
  • Current major version receives continuous support; previous support is limited to six months.

PHPMD: what it does well

  • Covers rulesets for clean code, design, naming and unused code.
  • Supports custom rules and security rules.
  • Can run in continuous integration.
  • Offers JSON, SARIF, Checkstyle-compatible, GitHub and GitLab reporting options.
  • Available under the BSD 3-Clause license.

What to know first

  • Analyzes PHP source code only.
  • Does not provide autofix.
  • No IDE support is listed.

Alternatives to ESLint Alternatives to PHPMD The whole list