PHP code analysis tools
PHP static analysis and code quality tools, ranked by GitHub stars
Actualizado · GitHub stars (stars)
Por qué estos 20
Ranked by GitHub stars: how many developers bookmarked the project. Stars measure attention, not quality, so each row also shows forks, licence and the last push. Tools without a public repository have no star count and can't be ranked here.
-
1
-
2
-
3
-
4
-
5
Larastan
A PHPStan wrapper for Laravel that adds static analysis to Laravel projects.
6,556 stars 532 forkslast push 2026-11-19PHPMIT
-
6
Psalm
A static analysis tool for finding errors in PHP applications.
5,933 stars 736 forkslast push 2026-11-21PHPMIT
-
7
phan
A static analyzer based on PHP 7+ and the php-ast extension.
5,619 stars 368 forkslast push 2026-11-21PHPNOASSERTION
-
8
-
9
carthage-software/mago
Mago is a toolchain for PHP that aims to provide a set of tools to help developers write better code.
3,564 stars 224 forkslast push 2026-11-20RustApache-2.0
También en: #8 Rust linters and code quality tools, ranked by GitHub stars
-
10
Laravel Pint
A coding standards fixer library for Laravel.
3,176 stars 204 forkslast push 2026-11-11PHPMIT
-
11
Deptrac
A static analysis tool for enforcing dependency rules between architectural layers.
3,057 stars 157 forkslast push 2026-09-20PHPMIT
-
12
-
13
PHP Mess Detector
A library that scans code for bugs, sub-optimal code, unused parameters and more.
2,464 stars 361 forkslast push 2026-11-10PHPBSD-3-Clause
-
14
PHPCompatibility
A PHP compatibility checker for PHP CodeSniffer.
2,316 stars 204 forkslast push 2026-11-20PHPLGPL-3.0
-
15
Phpactor
PHP completion, refactoring and introspection tool.
1,931 stars 168 forkslast push 2026-11-19PHPMIT
-
16
PHP CodeSniffer
A library that detects and can auto-fix PHP, CSS and JS coding standard violations.
1,574 stars 120 forkslast push 2026-11-21PHPBSD-3-Clause
-
17
PHPDoc Parser
Next-gen phpDoc parser with support for intersection types and generics.
1,544 stars 81 forkslast push 2026-11-16PHPMIT
-
18
PHP Architecture Tester
Easy-to-use architecture testing tool for PHP.
1,291 stars 61 forkslast push 2026-11-02PHPMIT
-
19
Better Reflection
An AST-based reflection library that allows analysis and manipulation of code.
1,247 stars 138 forkslast push 2026-11-21PHPMIT
-
20
Iter
A library that provides iteration primitives using generators.
1,145 stars 70 forkslast push 2026-09-23PHPNOASSERTION
Referencias
- ziadoz/awesome-php: Code Analysis, Code Quality, Static Analysis, Architectural, GitHub community list (list text CC0/MIT per repository; star counts from the GitHub API). Checked 2026-11-21 18:54 UTC.
- ziadoz/awesome-php (Code Analysis, Code Quality, Static Analysis, Architectural), GitHub community list, 35 tools with a public repository.