Maintainer-curated PHP tooling index

Choose the right analysis tool for your PHP codebase.

Explore static analyzers, coding-standard tools, architecture guards, metrics, refactoring utilities, and hosted services in one current, searchable catalog.

Catalog freshness: 107/111 records refreshed within 7 days as of .

80
current tools
9
editor picks
7
categories
31
preserved projects

Search installable tools

Tools and packages

Installable analyzers, packages, plugins, and command-line tools come first. Recommended order prioritizes editorial relevance; repository activity remains a separate signal.

72 tools

Showing 72 tools

Default order: current editorial picks, then other current tools. Search covers descriptions, tags, ecosystems, capabilities, and trade-offs. Jump to results ↓

All installable tools

Submit a missing tool
Bug finders

PHPStan

Active

PHP Static Analysis Tool - discover bugs in your code without running it!

  • PHP
  • PHPStan
  • Static Analysis
Type
Analyzer
PHP
^7.4|^8.0
License
MIT
Install
composer require --dev phpstan/phpstan
Stars
14,070
Latest
2.2.8
Last commit
Last release
Quick pros & cons for PHPStan

ProPairs mature type analysis with a large extension ecosystem.

ConHigher rule levels often need annotations and gradual adoption.

Editorially reviewed

Bug finders

psalm

Active

A PHP static analysis tool for finding errors and security vulnerabilities in PHP applications

  • PHP
  • Static Analysis
Type
Analyzer
PHP
~8.1.31 || ~8.2.27 || ~8.3.16 || ~8.4.3 || ~8.5.0
License
MIT
Install
composer require --dev vimeo/psalm
Stars
5,881
Latest
6.16.1
Last commit
Last release
Quick pros & cons for psalm

ProCombines expressive types with taint and security analysis.

ConAdvanced checks add annotation and configuration work.

Editorially reviewed

Coding standards

PHP_CodeSniffer

Active

PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.

  • PHP
  • Static Analysis
Type
Analyzer
PHP
>=7.2.0
License
BSD-3-Clause
Install
composer require --dev phpcsstandards/php_codesniffer
Stars
1,545
Latest
4.0.4
Last commit
Last release
Quick pros & cons for PHP_CodeSniffer

ProSupports established standards and detailed custom sniffs.

ConLarge standards need configuration and can produce many findings.

Editorially reviewed

Fixers and refactoring

PHP CS Fixer

Active

A tool to automatically fix PHP Coding Standards issues

  • PHP
  • Static Analysis
Type
Fixer
PHP
^7.4 || ^8.0
License
MIT
Install
composer require --dev friendsofphp/php-cs-fixer
Stars
13,547
Latest
v3.95.18
Last commit
Last release
Quick pros & cons for PHP CS Fixer

ProOffers a broad catalog of automatic coding-standard fixes.

ConBroad rule changes can create large review diffs.

Editorially reviewed

Fixers and refactoring

Rector

Active

Instant Upgrades and Automated Refactoring of any PHP 5.3+ code

  • PHP
Type
Fixer
PHP
^7.4|^8.0
License
MIT
Install
composer require --dev rector/rector
Stars
10,400
Latest
2.6.2
Last commit
Last release
Quick pros & cons for Rector

ProAutomates PHP upgrades and repeatable AST refactoring.

ConGenerated refactors still require tests and code review.

Editorially reviewed

Architecture rules

Deptrac

Active

Keep your architecture clean.

  • PHP
Type
Analyzer
PHP
^8.2
License
MIT
Install
composer require --dev deptrac/deptrac
Stars
2,989
Latest
4.7.1
Last commit
Last release
Quick pros & cons for Deptrac

ProTurns layer and module boundaries into repeatable CI checks.

ConThe dependency map must stay aligned with the architecture.

Editorially reviewed

Libraries and building blocks

PHP Parser

Active

A PHP parser written in PHP

  • PHP
  • Static Analysis
Type
Library
PHP
>=7.4
License
BSD-3-Clause
Install
composer require nikic/php-parser
Stars
17,450
Latest
v5.8.0
Last commit
Last release
Quick pros & cons for PHP Parser

ProProvides a mature PHP AST and traversal API.

ConIt produces syntax structures, not high-level findings.

Editorially reviewed

Specialized tools

Semgrep

Active

Lightweight static analysis for many languages. Find bug variants with patterns that look like source code.

  • Static Analysis
Type
Analyzer
License
LGPL-2.1
Stars
16,206
Latest
v1.173.0
Last commit
Last release
Quick pros & cons for Semgrep

ProMakes custom security rules concise and language-friendly.

ConDeep PHP type and framework semantics are limited.

Editorially reviewed

Fixers and refactoring

Laravel Pint

Active

Laravel projects that want a low-configuration formatter with framework-oriented defaults.

  • Code Quality
  • Laravel
  • PHP
Type
Fixer
PHP
^8.2.0
License
MIT
Pricing
Free and open source
Install
composer require laravel/pint --dev
Stars
3,148
Latest
v1.30.5
Last commit
Last release
Quick pros & cons for Laravel Pint

ProProvides Laravel-oriented formatting defaults with minimal configuration.

ConIts opinionated defaults offer less control than configuring PHP-CS-Fixer directly.

Editorially reviewed

Specialized tools

Larastan

Active

⚗️ Adds code analysis to Laravel improving developer productivity and code quality.

  • PHP
  • PHPStan
Type
Extension
PHP
^8.2
License
MIT
Install
composer require --dev larastan/larastan
Stars
6,483
Latest
v3.10.0
Last commit
Last release
Quick pros & cons for Larastan

ProTeaches PHPStan about Laravel containers, facades, and models.

ConIt depends on PHPStan and Laravel-specific configuration.

Editorially reviewed

Bug finders

jscpd

Active

Copy/paste detector for programming source code, supports 223 formats. AI-ready with token-efficient reporter, skill and MCP server.

  • Code Quality
Type
Analyzer
License
MIT
Stars
5,999
Latest
v4.3.0
Last commit
Last release
Quick pros & cons for jscpd

ProDetects duplication across PHP and hundreds of other formats.

ConGenerated code and boilerplate need threshold tuning.

Editorially reviewed

Metrics and architecture

PHPInsights

Active

🔰 Instant PHP quality checks from your console

  • PHP
Type
Metrics
PHP
^8.3
License
MIT
Install
composer require --dev nunomaduro/phpinsights
Stars
5,629
Latest
v2.14.2
Last commit
Last release
Quick pros & cons for PHPInsights

ProSummarizes several PHP quality checks in one console report.

ConAggregate scores can hide why a rule matters.

Editorially reviewed

Official website currently unavailable

Bug finders

Phan

Active

Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness.

  • PHP
  • Static Analysis
Type
Analyzer
PHP
^8.1.0
Install
composer require --dev phan/phan
Stars
5,622
Latest
6.0.7
Last commit
Last release
Quick pros & cons for Phan

ProPrioritizes low false-positive AST-based type analysis.

ConIt requires the php-ast extension and careful configuration.

Editorially reviewed

Specialized tools

GrumPHP

Active

Running a project’s PHP quality tools before code is committed

  • Code Quality
  • PHP
Type
Orchestrator
PHP
~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0
License
MIT
Install
composer require --dev phpro/grumphp
Stars
4,308
Latest
v2.23.0
Last commit
Last release
Quick pros & cons for GrumPHP

ProRuns the project's quality tools before commit and in CI.

ConIt orchestrates analyzers rather than adding its own checks.

Editorially reviewed

Bug finders

mago

Active

Mago is a toolchain for PHP that aims to provide a set of tools to help developers write better code.

  • PHP
  • Static Analysis
Type
Analyzer
PHP
~8.1 || ~8.2 || ~8.3 || ~8.4 || ~8.5 || ~8.6
License
Apache-2.0
Install
composer require --dev carthage-software/mago
Stars
3,375
Latest
1.46.0
Last commit
Last release
Quick pros & cons for mago

ProCombines fast linting, analysis, and formatting in one toolchain.

ConIts ecosystem is younger than established PHP analyzers.

Editorially reviewed

Specialized tools

Qlty

Active

Polyglot teams that want one local and CI workflow around PHPStan, PHPCS, PHP-CS-Fixer, Semgrep, and other tools.

  • Code Quality
  • PHP
  • Static Analysis
Type
Orchestrator
PHP
PHP 5+ for maintainability and coverage; individual plugins have their own requirements.
License
Business Source License 1.1 with delayed open-source publication
Pricing
Qlty CLI is free for all use; Qlty Cloud has separate service plans.
Install
Install a native Qlty CLI binary using the official installer or release archive.
Stars
3,118
Latest
v0.641.0
Last commit
Last release
Quick pros & cons for Qlty

ProUnifies PHP linters, formatters, security checks, metrics, and coverage in a polyglot CLI.

ConThe CLI uses a Fair Source BSL license rather than an OSI-approved open-source license.

Editorially reviewed

Specialized tools

Opengrep

Active

🔎 Static code analysis engine to find security issues in code.

Type
Analyzer
License
LGPL-2.1
Stars
2,938
Latest
v1.27.0
Last commit
Last release
Quick pros & cons for Opengrep

ProUses source-like rules for custom security checks.

ConCustom rules need tuning to control false positives.

Editorially reviewed

Coding standards

WordPress Coding Standards

Active

WordPress core, plugin, and theme projects enforcing ecosystem conventions in CI.

  • PHP
  • PHPCS
  • Wordpress
Type
Ruleset
PHP
>=7.2
License
MIT
Pricing
Free and open source
Install
composer require --dev wp-coding-standards/wpcs
Stars
2,822
Latest
3.4.1
Last commit
Last release
Quick pros & cons for WordPress Coding Standards

ProApplies the official WordPress PHP conventions through the familiar PHPCS workflow.

ConIts conventions are specific to WordPress projects and require PHP_CodeSniffer.

Editorially reviewed

Metrics and architecture

PHP Metrics

Active

Beautiful and understandable static analysis tool for PHP

  • PHP
Type
Metrics
License
MIT
Install
composer require --dev phpmetrics/phpmetrics
Stars
2,608
Latest
v2.11.0
Last commit
Last release
Quick pros & cons for PHP Metrics

ProTurns code metrics into readable visual reports.

ConMetrics do not prescribe the right refactor.

Editorially reviewed

Bug finders

PHP Mess Detector

Active

PHPMD 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 frontend application for the raw metrics stream measured by PHP Depend.

  • PHP
  • Static Analysis
Type
Analyzer
PHP
>=5.3.9
License
BSD-3-Clause
Install
composer require --dev phpmd/phpmd
Stars
2,444
Latest
2.15.0
Last commit
Last release
Quick pros & cons for PHP Mess Detector

ProCatches complexity, naming, and maintainability problems.

ConDefault rules can be noisy on existing codebases.

Editorially reviewed

Bug finders

PHP Compatibility

Active

PHP Compatibility check for PHP_CodeSniffer

  • PHP
Type
Ruleset
PHP
>=5.3
License
LGPL-3.0
Install
composer require --dev phpcompatibility/php-compatibility
Stars
2,299
Latest
9.3.5
Last commit
Last release
Quick pros & cons for PHP Compatibility

ProChecks code against a target PHP version range.

ConIt needs PHP_CodeSniffer and cannot prove runtime compatibility.

Editorially reviewed

Fixers and refactoring

Phpactor

Active

Mainly a PHP Language Server with more features than you can shake a stick at

  • PHP
Type
Extension
PHP
^8.2
License
MIT
Install
composer require --dev phpactor/phpactor
Stars
1,912
Latest
2026.07.22.0
Last commit
Last release
Quick pros & cons for Phpactor

ProCombines a PHP language server with refactoring tools.

ConIts editor-focused setup can feel heavy for CI-only use.

Editorially reviewed

Coding standards

EasyCodingStandard

Active

ECS runs PHP-CS-Fixer and PHP_CodeSniffer as a single, parallel fast tool with zero dependencies. Run on PHP 7.2+

  • PHP
Type
Orchestrator
License
MIT
Stars
1,620
Latest
13.2.15
Last commit
Last release
Quick pros & cons for EasyCodingStandard

ProRuns PHP-CS-Fixer and PHP_CodeSniffer from one config.

ConIts wrapper adds another configuration layer.

Editorially reviewed

Libraries and building blocks

PHPStan PHPDoc Parser

Active

Analyzer and documentation-tool authors who need a maintained PHPDoc AST.

  • PHP
  • PHPStan
  • Static Analysis
Type
Library
PHP
PHP 7.4 or PHP 8.x
License
MIT
Pricing
Free and open source
Install
composer require phpstan/phpdoc-parser
Stars
1,532
Latest
2.3.3
Last commit
Last release
Quick pros & cons for PHPStan PHPDoc Parser

ProProvides a maintained PHPDoc AST with generics and advanced type syntax.

ConIt is a parser library, not a ready-to-run analyzer.

Editorially reviewed

Active

Deep PHP code inspections directly in JetBrains IDEs

  • PHP
  • Static Analysis
Type
Extension
Delivery
PhpStorm and IntelliJ IDEA Ultimate plugin
Stars
1,485
Latest
-
Last commit
Last release
Unknown
Quick pros & cons for PHP Inspections (EA Extended)

ProAdds broad PHP inspections and quick fixes inside JetBrains IDEs.

ConIt requires a supported JetBrains IDE.

Editorially reviewed

Coding standards

Slevomat Coding Standard

Active

Teams building a strict, project-specific PHPCS standard with many automatically fixable rules.

  • Code Quality
  • PHP
  • PHPCS
Type
Ruleset
PHP
^7.4 || ^8.0
License
MIT
Pricing
Free and open source
Install
composer require --dev slevomat/coding-standard
Stars
1,480
Latest
8.31.1
Last commit
Last release
Quick pros & cons for Slevomat Coding Standard

ProOffers a broad PHPCS ruleset spanning safety, cleanup, formatting, and autofix.

ConIts large and evolving rule catalog needs an explicitly pinned project ruleset.

Editorially reviewed

Specialized tools

jakzal/phpqa

Active

Running a ready-made PHP analysis toolchain in Docker

  • Code Quality
  • PHP
  • PHPStan
  • Static Analysis
Type
Orchestrator
License
MIT
Stars
1,319
Latest
v1.124.1
Last commit
Last release
Quick pros & cons for jakzal/phpqa

ProBundles a maintained PHP analysis toolchain in Docker.

ConThe Docker image is heavier than installing one focused tool.

Editorially reviewed

Architecture rules

PHP Architecture Tester

Active

✔️ PHP Architecture Tester - Easy architecture testing for PHP

  • PHP
  • Static Analysis
Type
Analyzer
PHP
^8.1
License
MIT
Install
composer require --dev carlosas/phpat
Stars
1,274
Latest
0.12.4
Last commit
Last release
Quick pros & cons for PHP Architecture Tester

ProExpresses architecture constraints as readable PHP tests.

ConIts rule ecosystem is smaller than older architecture tools.

Editorially reviewed

Libraries and building blocks

Better Reflection

Active

:crystal_ball: Better Reflection is a reflection API that aims to improve and provide more features than PHP's built-in reflection API.

Type
Library
PHP
~8.4.1 || ~8.5.0
License
MIT
Install
composer require roave/better-reflection
Stars
1,246
Latest
6.72.0
Last commit
Last release
Quick pros & cons for Better Reflection

ProInspects source without loading the reflected classes.

ConIt is a building block, not a ready-made analyzer.

Editorially reviewed

Coding standards

composer-normalize

Active

🎵 Provides a composer plugin for normalizing composer.json.

Type
Fixer
PHP
~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0
License
MIT
Install
composer require --dev ergebnis/composer-normalize
Stars
1,117
Latest
2.52.0
Last commit
Last release
Quick pros & cons for composer-normalize

ProKeeps composer.json formatting deterministic.

ConIt only checks and rewrites composer.json.

Editorially reviewed

Specialized tools

Composer Require Checker

Active

A CLI tool to check whether a specific composer package uses imported symbols that aren't part of its direct composer dependencies

  • Code Quality
Type
Analyzer
PHP
~8.4.0 || ~8.5.0
License
MIT
Install
composer require --dev maglnet/composer-require-checker
Stars
1,009
Latest
4.24.0
Last commit
Last release
Quick pros & cons for Composer Require Checker

ProFinds symbols used without a direct Composer dependency.

ConDynamic symbols can require allowlists.

Editorially reviewed

Libraries and building blocks

php-ast

Active

Analyzer authors who need the engine AST; Phan is a prominent consumer.

  • Ast
  • PHP
  • Static Analysis
Type
Library
PHP
>= 7.2.0
License
BSD-3-Clause
Pricing
Free and open source
Install
pecl install ast
Stars
982
Latest
v1.1.3
Last commit
Last release
Quick pros & cons for php-ast

ProExposes the PHP engine's native AST with low parsing overhead.

ConIt is a native extension and consumers must build the actual analysis.

Editorially reviewed

Metrics and architecture

PDepend

Active

Measuring PHP design quality and dependency structure

  • Code Quality
  • PHP
Type
Metrics
PHP
>=5.3.7
License
BSD-3-Clause
Install
composer require --dev pdepend/pdepend
Stars
958
Latest
2.16.2
Last commit
Last release
Quick pros & cons for PDepend

ProMeasures coupling, complexity, and maintainability in detail.

ConTeams must interpret the metrics and choose thresholds.

Editorially reviewed

Architecture rules

PHPArkitect

Active

Put your architectural rules under test!

  • PHP
Type
Analyzer
PHP
^8.0
License
MIT
Install
composer require --dev phparkitect/phparkitect
Stars
924
Latest
1.3.0
Last commit
Last release
Quick pros & cons for PHPArkitect

ProKeeps architecture rules beside the project's test code.

ConTeams must define enough rules to cover the design.

Editorially reviewed

Fixers and refactoring

php-scoper

Active

🔨 Prefixes all PHP namespaces in a file/directory to isolate the code bundled in PHARs.

  • PHP
Type
Fixer
PHP
^8.2
License
MIT
Install
composer require --dev humbug/php-scoper
Stars
806
Latest
0.18.19
Last commit
Last release
Quick pros & cons for php-scoper

ProIsolates bundled PHP code by prefixing namespaces.

ConDynamic names and bundled resources still need testing.

Editorially reviewed

Bug finders

PHPStan Symfony

Active

Symfony applications that need PHPStan to understand containers, console commands, forms, Messenger, and framework return types.

  • PHP
  • PHPStan
  • Static Analysis
  • Symfony
Type
Extension
PHP
^7.4 || ^8.0
License
MIT
Pricing
Free and open source
Install
composer require --dev phpstan/phpstan-symfony
Stars
793
Latest
2.0.20
Last commit
Last release
Quick pros & cons for PHPStan Symfony

ProTeaches PHPStan about Symfony containers, console commands, forms, and Messenger.

ConAdvanced checks require generated Symfony container metadata and framework-specific setup.

Editorially reviewed

Bug finders

PHPStan Strict Rules

Active

Teams that have adopted PHPStan and want stronger correctness constraints than the default configuration.

  • PHP
  • PHPStan
  • Static Analysis
Type
Ruleset
PHP
^7.4 || ^8.0
License
MIT
Pricing
Free and open source
Install
composer require --dev phpstan/phpstan-strict-rules
Stars
704
Latest
2.0.12
Last commit
Last release
Quick pros & cons for PHPStan Strict Rules

ProEnables a maintained set of stricter correctness rules with little setup.

ConOpinionated rules can create substantial adoption work in an existing codebase.

Editorially reviewed

Active

🚀 Fast detection of composer dependency issues (unused dependencies, shadow dependencies, misplaced dependencies)

Type
Analyzer
PHP
^7.2 || ^8.0
License
MIT
Install
composer require --dev shipmonk/composer-dependency-analyser
Stars
626
Latest
1.8.4
Last commit
Last release
Quick pros & cons for composer-dependency-analyser

ProFinds unused, shadowed, and misplaced Composer dependencies.

ConIt does not replace type or behavior analysis.

Editorially reviewed

Active

Library maintainers enforcing semantic-versioning compatibility in CI.

  • API compatibility
  • PHP
  • Static Analysis
Type
Analyzer
PHP
~8.4.0 || ~8.5.0
License
MIT
Pricing
Free and open source
Install
composer require --dev roave/backward-compatibility-check
Stars
601
Latest
8.21.0
Last commit
Last release
Quick pros & cons for Roave Backward Compatibility Check

ProTurns PHP API compatibility changes into an enforceable CI check.

ConIt depends on Git history and SemVer tags and cannot detect every behavioral compatibility break.

Editorially reviewed

Specialized tools

Glayzzle PHP Parser (Node.js)

Active

JavaScript and Node.js tooling that needs to parse PHP without running PHP.

  • PHP
Type
Library
License
BSD-3-Clause
Stars
563
Latest
v3.7.0
Last commit
Last release
Quick pros & cons for Glayzzle PHP Parser (Node.js)

ProExposes PHP tokens and an AST to Node.js tools.

ConIt is a JavaScript parser, not a complete analyzer.

Editorially reviewed

Specialized tools

aislop

Active

Detecting AI-code mistakes and quality regressions before merge

  • Code Quality
  • PHP
  • Static Analysis
Type
Analyzer
License
MIT
Stars
549
Latest
v0.14.1
Last commit
Last release
Quick pros & cons for aislop

ProFinds common AI-code mistakes with deterministic rules.

ConHeuristic findings still need human review.

Editorially reviewed

Bug finders

Skylos

Active

Local pull-request scanning for dead code and security issues

  • Code Quality
  • PHP
  • Static Analysis
Type
Analyzer
License
Apache-2.0
Stars
536
Latest
v4.33.2
Last commit
Last release
Quick pros & cons for Skylos

ProScans pull requests locally for dead code and security issues.

ConIts broad PR checks may need repository-specific tuning.

Editorially reviewed

Active

Large PHP applications that need framework-aware dead-code detection and optional removal.

  • Dead Code
  • PHP
  • PHPStan
  • Static Analysis
Type
Extension
PHP
1.x requires PHP 8.1+; 0.x supports PHP 7.4–8.5
License
MIT
Pricing
Free and open source
Install
composer require --dev shipmonk/dead-code-detector
Stars
502
Latest
1.3.3
Last commit
Last release
Quick pros & cons for ShipMonk Dead Code Detector

ProFinds transitive and framework-driven dead code and can remove selected findings.

ConDynamic framework behavior may still require configuration or custom usage providers.

Editorially reviewed

Active

Applications and libraries preventing new deprecated API usage during upgrades.

  • PHP
  • PHPStan
  • Static Analysis
Type
Ruleset
PHP
^7.4 || ^8.0
License
MIT
Pricing
Free and open source
Install
composer require --dev phpstan/phpstan-deprecation-rules
Stars
458
Latest
2.0.5
Last commit
Last release
Quick pros & cons for PHPStan Deprecation Rules

ProDetects deprecated APIs and supports project-defined deprecation markers.

ConIt only reports deprecations that metadata, stubs, or extensions declare.

Editorially reviewed

Bug finders

SonarQube PHPSonarQube analyzer

Active

PHP quality and security analysis in the SonarQube ecosystem

  • Code Quality
  • PHP
  • Static Analysis
Type
Analyzer
Delivery
Analyzer for SonarQube Server and SonarQube for IDE
Stars
430
Latest
3.60.0.16641
Last commit
Last release
Quick pros & cons for SonarQube PHP

ProBrings PHP quality and security rules into SonarQube.

ConIt ties analysis to the SonarQube ecosystem.

Editorially reviewed

Bug finders

php-compat-info

Active

Library that find out the minimum version and the extensions required for a piece of code to run

  • PHP
Type
Analyzer
Stars
380
Latest
7.2.6
Last commit
Last release
Quick pros & cons for php-compat-info

ProFinds the minimum PHP version and extensions code requires.

ConRuntime and environment behavior remain outside its scope.

Editorially reviewed

Active

This tool check syntax of PHP files faster than serial check with fancier output.

Type
Analyzer
PHP
>=5.3.0
Install
composer require --dev php-parallel-lint/php-parallel-lint
Stars
356
Latest
v1.4.0
Last commit
Last release
Quick pros & cons for PHP-Parallel-Lint (maintained)

ProChecks PHP syntax quickly across many files.

ConIt checks syntax only.

Editorially reviewed

Bug finders

phpstan-dba

Active

PHP applications that want SQL errors and database access-layer type problems caught during PHPStan analysis.

  • PHP
  • PHPStan
  • Sql
  • Static Analysis
Type
Extension
PHP
^7.4 || ^8.0
License
MIT
Pricing
Free and open source
Install
composer require --dev staabm/phpstan-dba
Stars
297
Latest
0.4.10
Last commit
Last release
Quick pros & cons for phpstan-dba

ProAdds SQL validation and database result type inference to an existing PHPStan workflow.

ConDatabase-specific inference adds configuration and does not replace runtime integration tests.

Editorially reviewed

Libraries and building blocks

PHP-cfg

Active

A Control Flow Graph implementation in PHP

Type
Library
PHP
>=7.4
License
MIT
Install
composer require ircmaxell/php-cfg
Stars
246
Latest
V0.8.1
Last commit
Last release
Quick pros & cons for PHP-cfg

ProBuilds control-flow graphs for custom PHP analysis.

ConConsumers must build the actual analysis on top.

Editorially reviewed

Active

Static Analysis Results Baseliner

Type
Orchestrator
PHP
>=8.2 <8.6
License
MIT
Install
composer require --dev dave-liddament/sarb
Stars
165
Latest
1.11.0
Last commit
Last release
Quick pros & cons for Static Analysis Results Baseliner

ProCreates manageable baselines for existing analysis debt.

ConA baseline records debt instead of fixing it.

Editorially reviewed

Bug finders

phanalist

Active

Performant static analyzer for PHP, which is extremely easy to use. It helps you catch common mistakes in your PHP code.

  • PHP
  • Static Analysis
Type
Analyzer
License
MIT
Install
composer require --dev denzyl/phanalist
Stars
161
Latest
v1.1.10
Last commit
Last release
Quick pros & cons for phanalist

ProOffers a fast, low-setup check for common PHP mistakes.

ConIts rule set and integrations remain relatively small.

Editorially reviewed

Metrics and architecture

AST Metrics

Active

Multi-language architecture, dependency, complexity, and code-structure metrics.

  • Code Quality
  • Static Analysis
Type
Metrics
License
MIT
Stars
152
Latest
v0.42.0
Last commit
Last release
Quick pros & cons for AST Metrics

ProMaps architecture and metrics across several languages.

ConMetrics highlight risk; they do not prove defects.

Editorially reviewed

Libraries and building blocks

Reflection

Active

Reflection library to do Static Analysis for PHP Projects

Type
Library
PHP
8.2.*|8.3.*|8.4.*|8.5.*
License
MIT
Install
composer require phpdocumentor/reflection
Stars
125
Latest
7.0.0
Last commit
Last release
Quick pros & cons for Reflection

ProResolves code and DocBlock types without executing source.

ConIt is a library rather than a standalone checker.

Editorially reviewed

Metrics and architecture

PhpCodeArcheology

Active

PHP static analysis for architecture & maintainability — 60+ metrics, complexity analysis, dependency graphs, git churn hotspots, and AI-ready MCP server. Alternative to PHPMetrics.

  • Code Quality
  • PHP
  • Static Analysis
Type
Metrics
License
MIT
Stars
87
Latest
v2.11.2
Last commit
Last release
Quick pros & cons for PhpCodeArcheology

ProCombines metrics, dependency graphs, and Git churn.

ConIts broad reports require interpretation and prioritization.

Editorially reviewed

Coding standards

editorconfig-checker

Active

A tool to verify that your files are in harmony with your .editorconfig

  • Code Quality
  • PHP
Type
Analyzer
PHP
^7.2 || ^8.0
License
MIT
Install
composer require --dev editorconfig-checker/editorconfig-checker
Stars
75
Latest
10.7.0
Last commit
Last release
Quick pros & cons for editorconfig-checker

ProVerifies EditorConfig rules across a repository.

ConIt enforces basic formatting rules, not PHP semantics.

Editorially reviewed

Bug finders

PHPDoctor

Active

🏥 PHPDoctor: Check files, full directories or strings for missing or bad PHPDoc types.

  • PHP
  • Static Analysis
Type
Analyzer
PHP
>=8.1
License
Apache-2.0
Install
composer require --dev voku/phpdoctor
Stars
53
Latest
0.8.0
Last commit
Last release
Quick pros & cons for PHPDoctor

ProFinds missing or inconsistent PHPDoc types.

ConIt covers PHPDoc types, not general correctness.

Editorially reviewed

Active

Fast & simple tool to find class duplicates in your projects.

  • PHP
Type
Analyzer
PHP
^7.2 || ^8.0
License
MIT
Install
composer require --dev shipmonk/name-collision-detector
Stars
35
Latest
2.1.1
Last commit
Last release
Quick pros & cons for name-collision-detector

ProFinds duplicate class names with a narrow, fast check.

ConIt checks duplicate names, not wider code quality.

Editorially reviewed

Bug finders

Composer-Unused

Quiet

Show unused composer dependencies by scanning your code

  • PHP
Type
Analyzer
PHP
^8.1
License
MIT
Install
composer require --dev icanhazstring/composer-unused
Stars
1,684
Latest
0.9.6
Last commit
Last release
Quick pros & cons for Composer-Unused

ProQuickly flags Composer packages that code may not use.

ConDynamic package use may require exclusions.

Editorially reviewed

Quiet

PHP Magic Number Detector

  • PHP
  • Static Analysis
Type
Analyzer
PHP
^7.4 || ^8.0
License
MIT
Install
composer require --dev povils/phpmnd
Stars
586
Latest
v3.6.1
Last commit
Last release
Quick pros & cons for PHP Magic Number Detector

ProTargets unexplained numeric literals with one focused rule set.

ConTeams often need project-specific exclusions.

Editorially reviewed

Coding standards

TLint

Quiet

Tighten linter for Laravel conventions.

  • PHP
Type
Ruleset
PHP
>=8.1
License
MIT
Install
composer require --dev tightenco/tlint
Stars
526
Latest
v9.6.1
Last commit
Last release
Quick pros & cons for TLint

ProChecks Laravel code against Tighten's conventions.

ConIts rules target Laravel projects.

Editorially reviewed

Bug finders

PHP Analysis

Quiet

PHP language analyses in Rascal

Type
Analyzer
License
BSD-2-Clause
Stars
29
Latest
v1.1.0
Last commit
Last release
Quick pros & cons for PHP Analysis

ProSupports custom PHP language research in Rascal.

ConIt requires Rascal and targets specialist use cases.

Editorially reviewed

Quiet

Static type checker for PHP relying on the php-ast PECL extension. Mirrored from Codeberg.org

Type
Analyzer
Stars
0
Latest
-
Last commit
Last release
Unknown
Quick pros & cons for PHP Static Type Checker

ProProvides focused type checks through PHP's native AST.

ConIt depends on php-ast and has a small ecosystem.

Editorially reviewed

Metrics and architecture

churn-php

Inactive

Discover files in need of refactoring.

  • PHP
Type
Metrics
PHP
>=7.1.3
License
MIT
Install
composer require --dev bmitch/churn-php
Stars
1,376
Latest
1.7.3
Last commit
Last release
Quick pros & cons for churn-php

ProCombines churn and complexity to rank refactoring targets.

ConIts ranking identifies risk, not the required fix.

Editorially reviewed

Bug finders

noverify

Inactive

Pretty fast linter (code static analysis utility) for PHP

  • PHP
Type
Analyzer
PHP
>=7.1
License
MIT
Install
composer require --dev vkcom/noverify
Stars
688
Latest
v0.5.5
Last commit
Last release
Quick pros & cons for noverify

ProRuns PHP lint checks quickly from a standalone binary.

ConIts rule ecosystem is smaller than PHP-native leaders.

Editorially reviewed

Specialized tools

PHPQA

Inactive

Analyze PHP code with one command

Type
Orchestrator
PHP
>=5.4
License
MIT
Install
composer require --dev edgedesign/phpqa
Stars
564
Latest
v1.27.2
Last commit
Last release
Quick pros & cons for PHPQA

ProRuns a broad PHP quality toolchain with one command.

ConBundled tools still need individual configuration.

Editorially reviewed

Metrics and architecture

dePHPend

Inactive

Detect flaws in your architecture, before they drag you down into the depths of dependency hell ...

  • PHP
Type
Metrics
PHP
^8.2
License
MIT
Install
composer require --dev dephpend/dephpend
Stars
532
Latest
0.9.0
Last commit
Last release
Quick pros & cons for dePHPend

ProVisualizes dependencies that weaken an architecture.

ConIt focuses on dependency structure, not runtime behavior.

Editorially reviewed

Inactive

Detecting source-level API compatibility changes before publishing a PHP package release.

  • PHP
Type
Analyzer
PHP
^8.1
License
MIT
Install
composer require --dev tomzx/php-semver-checker
Stars
436
Latest
v0.17.0
Last commit
Last release
Quick pros & cons for PHP Semantic Versioning Checker

ProSuggests version changes from source-level API differences.

ConDynamic behavior and documentation changes may escape detection.

Editorially reviewed

Bug finders

Progpilot

Inactive

A static analysis tool for security

  • PHP
Type
Analyzer
PHP
>=8.3
License
MIT
Install
composer require --dev designsecurity/progpilot
Stars
365
Latest
v1.3.0
Last commit
Last release
Quick pros & cons for Progpilot

ProTracks tainted data to find PHP security flaws.

ConSecurity findings need framework-aware tuning and review.

Editorially reviewed

Fixers and refactoring

PHP Weaver

Inactive

A combined runtime/static code-analysis tool, that can trace parameter types

Type
Analyzer
License
MIT
Stars
85
Latest
-
Last commit
Last release
Unknown
Quick pros & cons for PHP Weaver

ProCombines runtime traces with static type information.

ConRuntime traces only cover executed paths.

Editorially reviewed

Coding standards

PHP Doc Check

Inactive

Uses complexity metrics to determine which functions need documentation.

  • PHP
Type
Analyzer
License
MIT
Install
composer require --dev niels-de-blaauw/php-doc-check
Stars
43
Latest
v0.4.1
Last commit
Last release
Quick pros & cons for PHP Doc Check

ProUses complexity to focus documentation effort.

ConComplexity is only a proxy for documentation value.

Editorially reviewed

Metrics and architecture

php-class-dependencies-analyzer

Inactive

This tool allows you to monitor the dependencies and instability of your classes

  • PHP
  • Static Analysis
Type
Metrics
Stars
21
Latest
-
Last commit
Last release
Unknown
Quick pros & cons for php-class-dependencies-analyzer

ProTracks class dependencies and instability.

ConIt covers one dimension of maintainability.

Editorially reviewed

Specialized tools

Coverage Guard

AdjacentActive

Adjacent test-quality gating for critical methods and newly changed PHP code.

  • PHP
  • Static Analysis
Type
Analyzer
PHP
^8.1
License
MIT
Install
composer require --dev shipmonk/coverage-guard
Stars
56
Latest
1.1.0
Last commit
Last release
Quick pros & cons for Coverage Guard

ProEnforces coverage on critical methods or newly changed code.

ConIt needs coverage files and CI configuration.

Editorially reviewed

Side-by-side

Compare selected tools

Catalog fields are a starting point. Verify compatibility, license terms, and current documentation with each project.

Optional cloud platforms

Hosted analysis services

8 web-based services are listed separately from installable tools and packages. They are ordered alphabetically.

Hosted analysis services

Checkmarx

Checkmarx scans PHP source code for security vulnerabilities and helps teams review and remediate findings.

Type
Hosted Service
Quick pros & cons for Checkmarx

ProProvides deep PHP security scanning and remediation workflows.

ConCommercial hosting, setup, and licensing add overhead.

Editorially reviewed

Hosted analysis services

Codacy

Continuous code quality and security checks across repositories

Type
Hosted Service
Delivery
Hosted dashboard with SCM and CI integrations
Quick pros & cons for Codacy

ProAdds pull-request quality and security gates with little setup.

ConHosted rules and quality gates need project tuning.

Editorially reviewed

Hosted analysis services

DeepSource

Continuous PHP static analysis, SAST, and coverage reporting

  • Code Quality
  • PHP
  • Security
  • Static Analysis
Type
Hosted Service
Delivery
Hosted repository analysis with pull-request integrations
Quick pros & cons for DeepSource

ProCombines PHP analysis, coverage, and maintainability reporting.

ConCloud integration and vendor policy may not fit every team.

Editorially reviewed

Hosted analysis services

Laravelshift

the automated way to upgrade Laravel applications. Upgrade Laravel applications all the way from Laravel 4.2 to the latest version of Laravel

Type
Hosted Service
Quick pros & cons for Laravelshift

ProAutomates much of a Laravel version upgrade.

ConTeams must test and review the generated upgrade.

Editorially reviewed

Hosted analysis services

Qodana for PHPJetBrains Qodana service

PhpStorm-grade PHP inspections and quality gates in CI

  • Code Quality
  • PHP
  • Static Analysis
Type
Hosted Service
Delivery
Cloud reports with native or Docker-based PHP linters
Quick pros & cons for Qodana for PHP

ProRuns PhpStorm-grade inspections as CI quality gates.

ConLicensing and container setup add operational cost.

Editorially reviewed

Hosted analysis services

Snyk Code

Security-focused PHP static application security testing

  • PHP
  • Security
  • Static Analysis
Type
Hosted Service
Delivery
Hosted dashboard with SCM, CLI, IDE, and CI integrations
Quick pros & cons for Snyk Code

ProAdds security-focused PHP SAST to a hosted platform.

ConSAST covers only part of application security.

Editorially reviewed

Hosted analysis services

SonarQube Cloud

Hosted PHP quality gates, maintainability checks, and security analysis

  • Code Quality
  • PHP
  • Security
  • Static Analysis
Type
Hosted Service
Delivery
Hosted dashboard with repository and CI integrations
Quick pros & cons for SonarQube Cloud

ProProvides hosted PHP quality gates and security analysis.

ConService integration and rule tuning take time.

Editorially reviewed

Hosted analysis services

SymfonyInsight

Continuous PHP and Symfony quality, security, performance, and upgrade reports.

Type
Hosted Service
Pricing
Paid per-project plans; current pricing is published on the official site.
Quick pros & cons for SymfonyInsight

ProCombines PHP quality, security, performance, and upgrade reports with deeper Symfony understanding.

ConIt is a paid hosted service and its deepest analysis is Symfony-oriented.

Editorially reviewed

How this catalog stays current

Transparent, repository-backed data

The published site is regenerated from the same committed YAML records that produce the repository README.

01

Refresh metadata

Scheduled automation checks public GitHub, Packagist, release, and website metadata for catalog entries.

02

Validate selection

Tests validate curated picks and require manually maintained pros, cons, and evidence sources for every current entry.

03

Build and publish

A dependency-free Python generator turns committed catalog data into this static, searchable site.

See the source repository and catalog records to inspect the data or propose an improvement.

Project history

In Memoriam

Retired, superseded, or historically relevant projects remain preserved without being recommended as current choices.

View 31 preserved projects
Hosted analysis services

Code Climate

Historical

Historical reference for the service now continued as Qlty.

Type
Hosted Service

Editorially reviewed

Specialized tools

Coverage Checker

Historical

Allows old code to use new standards

  • PHP
  • PHPStan
PHP
>=8.1
License
MIT
Install
composer require --dev exussum12/coverage-checker
Stars
176
Latest
1.1.1
Last commit
Last release
Bug finders

Exakat

Historical

Legacy repository for the Exakat PHP static-analysis engine, superseded by exakat-ce.

  • Archived
  • PHP
  • Static Analysis
Stars
380
Latest
v-0.6.1
Last commit
Last release
Specialized tools

Fixtro

Historical

A QA static analysis code, with a different approach

  • PHP
  • Static Analysis
PHP
^7.0
License
MIT
Install
composer require --dev karlosagudo/fixtro
Stars
23
Latest
1.0.11
Last commit
Last release
Fixers and refactoring

FunctionFQNReplacer

Historical

provides a way to replace relative references of functions in function calls with absolute references

  • Archived
License
MIT
Stars
158
Latest
-
Last commit
Last release
Unknown
Specialized tools

HHVM

Historical

Historical reference: HHVM included static code analysis through version 3.3.8; newer versions do not.

  • Historical Analysis Only
  • PHP
Type
Runtime
PHP
No current PHP support; HHVM ended PHP support after version 3.30.
Stars
18,652
Latest
HHVM-3.15.0
Last commit
Last release

Editorially reviewed

Coding standards

Pahout

Historical

A pair programming partner for writing better PHP. Pahout means PHP mahout :elephant:

  • PHP
  • Static Analysis
PHP
>=7.1.0
License
MIT
Install
composer require --dev wata727/pahout
Stars
48
Latest
0.7.0
Last commit
Last release
Bug finders

Pfff

Historical

Tools for code analysis, visualizations, or style-preserving source transformation.

  • Archived
Stars
2,437
Latest
v0.29
Last commit
Last release
Bug finders

PHP Assumption

Historical

Tool to detect assumptions

License
MIT
Install
composer require --dev rskuipers/php-assumptions
Stars
164
Latest
0.9.1
Last commit
Last release
Fixers and refactoring

PHP BackSlasher

Historical

[Git hook] Tool to add all PHP internal functions and constants to its namespace by adding backslash to them.

  • PHP
PHP
>=5.4
License
MIT
Install
composer require --dev nilportugues/php_backslasher
Stars
88
Latest
1.1.4
Last commit
Last release
Coding standards

PHP formatter

Historical

PHP Formatter is a PHP developer friendly set of tools

  • Archived
  • PHP
PHP
>=7.0
License
MIT
Install
composer require --dev mmoreram/php-formatter
Stars
168
Latest
v1.3.3
Last commit
Last release
Specialized tools

PHP Manipulator

Historical

Library for Analyzing and Modifying PHP Source Code

License
Apache-2.0
Stars
105
Latest
-
Last commit
Last release
Unknown
Bug finders

PHP SA

Historical

Smart/Static Analyzer(sis) for PHP :bowtie::neckbeard:

  • Archived
  • PHP
PHP
>=5.5
Install
composer require --dev ovr/phpsa
Stars
635
Latest
0.6.2
Last commit
Last release
Bug finders

PHP testability

Historical

Analyses and reports testability issues of a php codebase

  • Archived
  • PHP
  • Static Analysis
License
GPL-2.0
Stars
130
Latest
-
Last commit
Last release
Unknown
Bug finders

PHP-malware-finder

Historical

Detect potentially malicious PHP files

License
LGPL-3.0
Stars
342
Latest
-
Last commit
Last release
Unknown
Historical

This tool check syntax of PHP files faster than serial check with fancier output.

  • Archived
  • PHP
Type
Analyzer
PHP
>=5.3.3
Install
composer require --dev jakub-onderka/php-parallel-lint
Stars
641
Latest
v0.9.2
Last commit
Last release

Editorially reviewed

Fixers and refactoring

php-refactoring-browser

Historical

A command line refactoring tool for PHP

  • Archived
License
MIT
Install
composer require --dev qafoolabs/php-refactoring-browser
Stars
547
Latest
v0.1
Last commit
Last release
Bug finders

php7mar

Historical

PHP 7 Migration Assistant Report (MAR)

  • Archived
PHP
>=5.4.0
License
GPL-3.0
Install
composer require --dev alexia/php7mar
Stars
781
Latest
v0.2.0-beta
Last commit
Last release
Historical

PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.

  • PHP
  • Static Analysis
Type
Analyzer
License
BSD-3-Clause
Stars
10,773
Latest
3.7.2
Last commit
Last release

Editorially reviewed

Bug finders

PhpCodeAnalyzer

Historical

Really, it's "php extensions usage analyzer". It scans codebase and analyzes which non-built-in php extensions used

  • Static Analysis
License
BSD-3-Clause
Stars
96
Latest
1.0.6
Last commit
Last release
Bug finders

PHPCodeFixer

Historical

Analyzer of PHP code to search issues with deprecated functionality in newer interpreter versions.

  • Static Analysis
License
BSD-3-Clause
Stars
367
Latest
2.0.33
Last commit
Last release
Bug finders

PHPCPD

Historical

Copy/Paste Detector (CPD) for PHP code.

  • Archived
PHP
>=7.3
License
BSD-3-Clause
Install
composer require --dev sebastian/phpcpd
Stars
2,212
Latest
6.0.3
Last commit
Last release
Metrics and architecture

PhpDependencyAnalysis

Historical

Static code analysis to find violations in a dependency graph

  • Code Quality
  • PHP
License
MIT
Stars
576
Latest
v2.0.2
Last commit
Last release
Fixers and refactoring

phpdoc to typehint

Historical

Add scalar type hints and return types to existing PHP projects using PHPDoc annotations

  • Archived
  • PHP
PHP
>=7.0.0
License
MIT
Install
composer require --dev dunglas/phpdoc-to-typehint
Stars
225
Latest
v0.1.0
Last commit
Last release
Metrics and architecture

PHPLOC

Historical

A tool for quickly measuring the size of a PHP project.

  • Archived
PHP
>=7.3
License
BSD-3-Clause
Install
composer require --dev phploc/phploc
Stars
2,343
Latest
7.0.2
Last commit
Last release
Bug finders

psecio:parse

Historical

Parse: A Static Security Scanner

  • PHP
  • Security
PHP
>=5.4
Install
composer require --dev psecio/parse
Stars
380
Latest
0.8
Last commit
Last release
Hosted analysis services

RIPSSonarSource service

Historical

Historical PHP security analyzer acquired by SonarSource in 2020 and integrated into SonarQube.

Type
Hosted Service

Editorially reviewed

Hosted analysis services

Scrutinizer

Historical

The retired Scrutinizer service provided continuous inspection for automated code-quality and bug detection.

  • Archived
Stars
138
Latest
-
Last commit
Last release
Unknown
Hosted analysis services

SideCI

Historical

Retired continuous-integration service for automated code review and static analysis.

  • Archived
Fixers and refactoring

Transphpile

Historical

PHP 7 to PHP 5.6 Transpiler

License
BSD-3-Clause
Stars
178
Latest
-
Last commit
Last release
Unknown