PHPStan

PHP Static Analysis Tool - discover bugs in your code without running it! (by phpstan)

PHPStan Alternatives

Similar projects and alternatives to PHPStan

  1. Laravel

    431 PHPStan VS Laravel

    Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation for your next big idea — freeing you to create without sweating the small things.

  2. 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
  3. starter-workflows

    Accelerating new GitHub Actions workflows

  4. Composer

    Dependency Manager for PHP

  5. Symfony

    184 PHPStan VS Symfony

    The Symfony PHP framework

  6. Rector

    123 PHPStan VS Rector

    Instant Upgrades and Automated Refactoring of any PHP 5.3+ code

  7. Psalm

    49 PHPStan VS Psalm

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

  8. PHP Code Sniffer

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

  9. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  10. PHPUnit

    50 PHPStan VS PHPUnit

    The PHP Unit Testing framework.

  11. PHP CS Fixer

    A tool to automatically fix PHP Coding Standards issues

  12. Pest

    41 PHPStan VS Pest

    Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.

  13. laravel-debugbar

    Debugbar for Laravel (Integrates PHP Debug Bar)

  14. GrumPHP

    26 PHPStan VS GrumPHP

    A PHP code-quality tool

  15. xDebug

    33 PHPStan VS xDebug

    Xdebug — Step Debugger and Debugging Aid for PHP

  16. Deptrac

    Discontinued Keep your architecture clean.

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

  18. psl

    14 PHPStan VS psl

    📚 PHP Standard Library - a modern, consistent, centralized, well-typed, non-blocking set of APIs for PHP programmers

  19. larastan

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

  20. Valinor

    10 PHPStan VS Valinor

    PHP library that helps to map any input into a strongly-typed value object structure.

  21. phpinsights

    🔰 Instant PHP quality checks from your console

  22. phan

    8 PHPStan VS phan

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

  23. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better PHPStan alternative or higher similarity.

PHPStan discussion

PHPStan reviews and mentions

Posts with mentions or reviews of PHPStan. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-10-17.
  • Running Rust Binaries on Shared Hosting: A Practical Approach to Type Safety on a Budget
    2 projects | dev.to | 17 Oct 2025
    I was tired of PHP's type system. Even with PHPStan and Psalm, there's no substitute for real compile-time guarantees. But I'm also practical - I don't want to pay for a VPS, maintain a server, manage security updates, configure databases, set up backups, and babysit infrastructure when shared hosting costs < $10/month and handles all of that for me.
  • PHPStan: Your Development Best Friend Who Actually Knows PHP Better Than You Do
    4 projects | dev.to | 15 Sep 2025
    Get involved with the PHPStan community on GitHub - report issues, contribute code, or join the discussions. For teams wanting premium features like web UI, continuous analysis, and advanced integrations, PHPStan Pro provides professional tooling on top of the open-source foundation.*
  • Mago: A fast PHP toolchain written in Rust
    11 projects | news.ycombinator.com | 13 Sep 2025
    I'll assume you meant Mago instead of Mayo.

    Why do you feel the need to personally discredit me instead of sticking to constructive arguments?

    And where did I say Mago wasn't a static analysis tool?

    I'm glad you wrote psaml. However I and most of the PHP community use https://phpstan.org instead, as you may know.

    At the time I made this choice on technical grounds. Then PHPStan found a way to stay profitable with PHPStan Pro while psaml stagnated, which cemented my decision. Recently, vimeo being acquired by Bending Spoons doesn't help either since psalm still lives in https://github.com/vimeo/psalm

  • Building a JSON CRUD API in PHP
    19 projects | dev.to | 3 Sep 2025
    Static Analysis Tools: Use tools like Psalm, PHPStan, or PHPCodesniffer to maintain high code quality.
  • Enhancing Laravel Code Quality with Larastan
    2 projects | dev.to | 21 Aug 2025
    It internally uses PHPStan, one of the most respected tools for static analysis in PHP.
  • Laravel Filament Multipanel Starter - Build your app fast
    6 projects | dev.to | 30 Jul 2025
    PHPStan for static analysis
  • Code Quality Check with PHPStan
    1 project | dev.to | 25 Jul 2025
    Ensuring clean, maintainable code is vital in any Laravel project. While PHPStan is an excellent static analysis tool for identifying code issues, the raw JSON output it generates isn’t always human-friendly. That’s where a custom reporting script comes in handy.
  • Laravel Filament Backend Starter – Build your admin panel fast
    5 projects | dev.to | 24 Jul 2025
    Dev-friendly tools with Laravel Debugbar, PHPStan for static analysis and Pint for consistent code formatting
  • PHP: errors to avoid with constructors
    2 projects | dev.to | 4 Mar 2025
    PHPStan: composer require --dev phpstan/phpstan
  • Build a Symfony 7 boilerplate using FrankenPHP, Docker, PostgreSQL and php 8.4
    11 projects | dev.to | 23 Dec 2024
    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.
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 23 Dec 2025
    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. Learn more →

Stats

Basic PHPStan repo stats
71
13,742
9.9
5 days ago

Sponsored
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.
www.influxdata.com

Did you know that PHP is
the 14th most popular programming language
based on number of references?