PHP Code Analysis

Open-source PHP projects categorized as Code Analysis

Top 23 PHP Code Analysis Projects

Code Analysis
  1. PHP Parser

    A PHP parser written in PHP

    Project mention: PHP 8.4 Released | news.ycombinator.com | 2024-11-21

    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...

  2. 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!

    JetBrains logo
  3. PHPStan

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

    Project mention: Enhancing Laravel Code Quality with Larastan | dev.to | 2025-08-21

    It internally uses PHPStan, one of the most respected tools for static analysis in PHP.

  4. PHP CS Fixer

    A tool to automatically fix PHP Coding Standards issues

  5. Rector

    Instant Upgrades and Automated Refactoring of any PHP 5.3+ code

    Project mention: Static vs Non-Static Closures in PHP – A Surprising Benchmark | dev.to | 2025-07-18

    StaticArrowFunctionRector

  6. larastan

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

    Project mention: Enhancing Laravel Code Quality with Larastan | dev.to | 2025-08-21

    A list of configurable rules specific to Laravel can be found here.

  7. phan

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

  8. GrumPHP

    A PHP code-quality tool

    Project mention: Grumphp en proyectos Ddev | dev.to | 2025-05-05
  9. 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!

    Sevalla logo
  10. PHP Metrics

    Beautiful and understandable static analysis tool for PHP

  11. 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.

  12. Phpactor

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

    Project mention: Setting up neovim for Laravel development | dev.to | 2024-12-22

    PHP Actor is a free alternative that includes the core features you'd expect from an LSP.

  13. 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-23

    To 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.

  14. 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.

  15. php-language-server

    PHP Implementation of the VS Code Language Server Protocol 🆚↔🖥

  16. PHPPHP

    A PHP VM implementation in PHP

  17. PhpDependencyAnalysis

    Static code analysis to find violations in a dependency graph

  18. UBench

    Micro PHP benchmark library

  19. PHP Semantic Versioning Checker

    Compares two source sets and determines the appropriate semantic versioning to apply.

  20. Mondrian

    A static php code analysis tool using the Graph Theory (by Trismegiste)

  21. Exakat

    The Exakat Engine : smart static analysis for PHP

  22. Athletic

    PHP Benchmarking Framework

  23. Dissect

    A set of tools for lexical and syntactical analysis written in pure PHP. (by jakubledl)

  24. PHP Migration

    A static analyzer for PHP version migration

  25. PHPCheckstyle

    PHPCheckstyle is an open-source tool that helps PHP programmers adhere to certain coding conventions.

  26. 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.

    InfluxDB logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

PHP Code Analysis discussion

Log in or Post with

PHP Code Analysis related posts

  • Enhancing Laravel Code Quality with Larastan

    2 projects | dev.to | 21 Aug 2025
  • Code Quality Check with PHPStan

    1 project | dev.to | 25 Jul 2025
  • Static vs Non-Static Closures in PHP – A Surprising Benchmark

    3 projects | dev.to | 18 Jul 2025
  • You Can Choose Tools That Make You Happy

    1 project | news.ycombinator.com | 26 May 2025
  • Automating PHP Refactoring with Rector

    1 project | dev.to | 10 Mar 2025
  • PHP: errors to avoid with constructors

    2 projects | dev.to | 4 Mar 2025
  • How to build a Laravel app using TDD that won't hurt you in the future

    7 projects | dev.to | 3 Mar 2025
  • A note from our sponsor - Sevalla
    sevalla.com | 1 Sep 2025
    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 →

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

Sponsored
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!
surveys.jetbrains.com