Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more! Learn more →
Top 23 PHP Code Analysis Projects
-
Once rector gets 8.4 rules out, this will be pretty awesome:
https://github.com/rectorphp/rector/issues/8701
https://github.com/nikic/PHP-Parser/commit/7b0384cdbe03431c4...
-
JetBrains
Tell us how you use coding tools. You may win a prize! Are you a developer or a data analyst? Share your thoughts about your coding tools in our short survey and get a chance to win prizes!
-
It internally uses PHPStan, one of the most respected tools for static analysis in PHP.
-
-
Project mention: Static vs Non-Static Closures in PHP – A Surprising Benchmark | dev.to | 2025-07-18
StaticArrowFunctionRector
-
A list of configurable rules specific to Laravel can be found here.
-
phan
Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness.
-
-
Sevalla
Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
-
-
PHP Mess Detector
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 Actor is a free alternative that includes the core features you'd expect from an LSP.
-
PHP Code Sniffer
PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
Project mention: Build a Symfony 7 boilerplate using FrankenPHP, Docker, PostgreSQL and php 8.4 | dev.to | 2024-12-23To do so simply install the runtime/frankenphp-symfony composer package. Then we install the bare minimum for a kick ass developer experience, a linter using Code Sniffer, phpstan as code quality audit tool, Rector to ease and automate code maintenance, some useful Symfony components and package and of course the Doctrine ORM. Here the composer.json file located at the symfony folder root.
-
Better Reflection
:crystal_ball: Better Reflection is a reflection API that aims to improve and provide more features than PHP's built-in reflection API.
-
-
-
-
-
PHP Semantic Versioning Checker
Compares two source sets and determines the appropriate semantic versioning to apply.
-
-
-
-
-
-
PHPCheckstyle
PHPCheckstyle is an open-source tool that helps PHP programmers adhere to certain coding conventions.
-
InfluxDB
InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
PHP Code Analysis discussion
PHP Code Analysis related posts
-
Enhancing Laravel Code Quality with Larastan
-
Code Quality Check with PHPStan
-
Static vs Non-Static Closures in PHP – A Surprising Benchmark
-
You Can Choose Tools That Make You Happy
-
Automating PHP Refactoring with Rector
-
PHP: errors to avoid with constructors
-
How to build a Laravel app using TDD that won't hurt you in the future
-
A note from our sponsor - Sevalla
sevalla.com | 1 Sep 2025
Index
What are some of the best open-source Code Analysis projects in PHP? This list will help you:
# | Project | Stars |
---|---|---|
1 | PHP Parser | 17,339 |
2 | PHPStan | 13,569 |
3 | PHP CS Fixer | 13,309 |
4 | Rector | 9,896 |
5 | larastan | 6,073 |
6 | phan | 5,577 |
7 | GrumPHP | 4,235 |
8 | PHP Metrics | 2,556 |
9 | PHP Mess Detector | 2,380 |
10 | Phpactor | 1,693 |
11 | PHP Code Sniffer | 1,323 |
12 | Better Reflection | 1,222 |
13 | php-language-server | 1,174 |
14 | PHPPHP | 813 |
15 | PhpDependencyAnalysis | 570 |
16 | UBench | 564 |
17 | PHP Semantic Versioning Checker | 431 |
18 | Mondrian | 396 |
19 | Exakat | 379 |
20 | Athletic | 297 |
21 | Dissect | 224 |
22 | PHP Migration | 202 |
23 | PHPCheckstyle | 164 |