PHP Code Analysis

Open-source PHP projects categorized as Code Analysis | Edit details

Top 23 PHP Code Analysis Projects

  • GitHub repo PHP Parser

    A PHP parser written in PHP

    Project mention: Tree-sitter: an incremental parsing system for programming tools | news.ycombinator.com | 2021-02-22

    I wish there was a more universal format for parsers, but I just don't think there enough people who know their stuff.

    Take PHP, a language that a lot of people use: the tree-sitter-php extension doesn't support features added in 2019, let alone features added towards the end of 2020.

    If you want an up-to-date PHP parser, there's really only one open-source parser[0] that's accurate enough to be used on PHP codebases old and new, and it's written in PHP. Then if you want to parse in a robust fashion you have to adopt a number of hacks to get everything working.

    I hadn't encountered LSIF before – can GitHub be configured to use those maps?

    [0] https://github.com/nikic/PHP-Parser

  • GitHub repo PHP CS Fixer

    A tool to automatically fix PHP Coding Standards issues

    Project mention: Let's say you get an old, PHP5, mysql_*, horrible codebase, riddled with security issues and no composer. Your task is to make it work on PHP7+. | reddit.com/r/PHP | 2021-08-29

    once these are done, composer require php codestyle fixer.

  • Scout APM

    Scout APM: A developer's best friend. Try free for 14-days. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.

  • GitHub repo PHPStan

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

    Project mention: PHP libraries and tools | dev.to | 2021-09-22

    PHPStan: PHP Static Analysis Tool - discover bugs in your code without running it!. Plugins: ergebnis/phpstan-rules: Provides additional rules for phpstan/phpstan. spaze/phpstan-disallowed-calls: PHPStan rules to detect disallowed calls and constant & namespace usages roave/no-floaters: static analysis rules to prevent IEEE-754 floating point errors. More extensions

  • GitHub repo PHP Code Sniffer

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

    Project mention: PHP-backend Roadmap | dev.to | 2021-09-11

    But the quality of the code and its style may seem subjective things, but teamwork requires it really often. In the PSR-12 standard, you can find the list of recommendations on how to style it. That standard isn't the only existing one, but it's definitely the most common. To simplify following it you can use CodeSniffer. And in order to develop the habit of writing clean code, you can use Psalm, Phan, or PHPStan linters. There's no need to learn each – better to choose the one you like most. In my case it's Psalm.

  • GitHub repo phan

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

    Project mention: Emotional Rage: any static-typed PHP compilers? | reddit.com/r/PHPhelp | 2021-07-15

    You can use a static analyzer like Phan to lint the project.

  • GitHub repo Rector

    Instant Upgrades and Automated Refactoring of any PHP 5.3+ code

    Project mention: Is PHP outdated? | reddit.com/r/webdev | 2021-09-01

    Something else mentioned in that episode that your teacher might find interesting is a recent tool called rector that's more or less babel for PHP, letting you use newer versions of PHP to code but still support older versions in production.

  • GitHub repo GrumPHP

    A PHP code-quality tool

    Project mention: PHP libraries and tools | dev.to | 2021-09-22

    GrumPHP: A PHP code-quality tool.

  • Nanos

    Run Linux Software Faster and Safer than Linux with Unikernels.

  • GitHub repo PHP Metrics

    Beautiful and understandable static analysis tool for PHP

  • GitHub repo PHPLOC

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

    Project mention: PHP Static Analysis Tools Review | dev.to | 2021-04-28

    PHPLOC also shows interesting statistics about your project. It is not as powerful as PHPDepend, but you can also get an interesting overview of your code size, complexity, number of classes, etc.

  • GitHub repo PHPCPD

    Copy/Paste Detector (CPD) for PHP code.

    Project mention: Twelve-factor app módszer a gyakorlatban / 1. rész | dev.to | 2021-08-22
  • GitHub repo 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.

    Project mention: Twelve-factor app módszer a gyakorlatban / 1. rész | dev.to | 2021-08-22
  • GitHub repo php-language-server

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

    Project mention: How to use (and contribute) to neovim's built-in language server client and nvim-lspconfig | reddit.com/r/neovim | 2021-01-07

    but as many people working in a lot of things I have no time to try to configure https://github.com/felixfbecker/php-language-server with nvim-lsp

  • GitHub repo 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.

  • GitHub repo PHPPHP

    A PHP VM implementation in PHP

  • GitHub repo Phpactor

    PHP completion, refactoring, introspection tool and language server.

    Project mention: Does anyone use vim to develop in PHP with Symfony? | reddit.com/r/vim | 2021-02-01

    Im using this https://github.com/phpactor/phpactor with ncm2 with ale. Im quite happy with it.

  • GitHub repo UBench

    Micro PHP benchmark library

  • GitHub repo PhpDependencyAnalysis

    Static code analysis to find violations in a dependency graph

    Project mention: Tool for analysis dependency inside your project | reddit.com/r/PHP | 2021-08-11

    And maybe, to a lesser extent, to: - https://github.com/mihaeu/dephpend - https://github.com/mamuz/PhpDependencyAnalysis

  • GitHub repo PHP Semantic Versioning Checker

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

  • GitHub repo Mondrian

    A static php code analysis tool using the Graph Theory

  • GitHub repo Exakat

    The Exakat Engine : smart static analysis for PHP

  • GitHub repo Athletic

    PHP Benchmarking Framework

  • GitHub repo Dissect

    A set of tools for lexical and syntactical analysis written in pure PHP.

  • GitHub repo PHP Migration

    A static analyzer for PHP version migration

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). The latest post mention was on 2021-09-22.

Index

What are some of the best open-source Code Analysis projects in PHP? This list will help you:

Project Stars
1 PHP Parser 14,821
2 PHP CS Fixer 10,480
3 PHPStan 10,196
4 PHP Code Sniffer 8,819
5 phan 5,139
6 Rector 4,410
7 GrumPHP 3,584
8 PHP Metrics 2,149
9 PHPLOC 2,139
10 PHPCPD 2,085
11 PHP Mess Detector 1,949
12 php-language-server 1,049
13 Better Reflection 918
14 PHPPHP 788
15 Phpactor 673
16 UBench 536
17 PhpDependencyAnalysis 522
18 PHP Semantic Versioning Checker 415
19 Mondrian 381
20 Exakat 361
21 Athletic 313
22 Dissect 217
23 PHP Migration 188
Find remote jobs at our new job board 99remotejobs.com. There are 25 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com