PHPStan

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

PHPStan Alternatives

Similar projects and alternatives to PHPStan

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

Log in or Post with

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 2024-06-25.
  • How to Avoid Adding New Code that Uses Deprecated Code?
    2 projects | dev.to | 25 Jun 2024
    At DinnerBooking, we've tackled this challenge using PHPStan. Here’s how:
  • Rector keeps your PHP code base fresh and perfect
    2 projects | dev.to | 15 Mar 2024
    As part of the journey to PHP perfection, you should embrace Rector. It's a amazing, free, and open-source tool for migrations, code quality, type coverage, pushing PHPStan to the highest levels, and yes, it can even auto-fix your existing code! It seamlessly integrates into the CI process, making your development workflow smoother than ever.
  • 8 Essential Tools Every PHP Developer Needs
    6 projects | dev.to | 27 Feb 2024
    PHPStan focuses on finding errors in PHP code without running it. It captures all types of errors, even before you write tests. It brings PHP closer to compiled languages by checking the correctness of each line of code before execution.
  • Laravel code-quality tools
    16 projects | dev.to | 8 Feb 2024
    PHPStan is a static analysis tool for PHP. Larastan is a package built on top of PHPStan to make it easier to integrate with Laravel projects. PHPStan works by "sniffing" the code using the various rulesets applied to it and determine if it follows the standards. However, Larastan doesn't fully follow the definition of "static analysis" since it has to boot the application's container and resolve the types that can only be computed at runtime. This is why Larastan is called a "code analysis" tool rather than a "static analysis" tool.
  • PHP 8.3
    3 projects | news.ycombinator.com | 24 Nov 2023
  • PHP libraries and tools
    47 projects | dev.to | 18 Oct 2023
    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. dave-liddament/php-language-extensions: Attributes to define PHP language extensions (to be enforced by static analysis) sidz/phpstan-rules: Additional rules for phpstan/phpstan. staabm/phpstan-baseline-analysis: Analyzes PHPStan baseline files and creates aggregated error trend-reports More extensions
  • Writing Custom PHPStan Rule to prohibit business logic in controllers
    1 project | dev.to | 21 Jul 2023
    So, in this article we have written a fairly simple but functional rule for PHPStan. We have discussed the basics of PHPStan and now we can cover our project with more complex tests. I also recommend reading the developer documentation. It won't take you long to learn more rule development features.
  • Secure coding
    1 project | /r/PHPhelp | 5 Jul 2023
    You could try something like PHP Stan. It scans your code for defects and lists them all for you. It probably won't catch everything, but it'll certainly help, and it's free
  • Top 6 PHP code quality tools 2023
    7 projects | dev.to | 30 May 2023
    PHPStan is a powerful static analysis tool that performs comprehensive type checking and detects potential errors in PHP code. It analyzes the codebase and provides detailed reports, highlighting type mismatches, undefined variables, and other issues. Documentation: The official repository of PHPStan contains detailed information on installation, configuration, and usage: PHPStan Repository
  • Show HN: Hyvor Blogs – Multi-language blogging platform
    9 projects | news.ycombinator.com | 9 May 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 11 Dec 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic PHPStan repo stats
60
13,055
9.9
6 days ago

Sponsored
Cloudways' Black Friday Offer - 1st Choice of Developers
Cloudways: Devs' 1st choice for managed hosting! Pick from top-tier Cloud providers like DigitalOcean, AWS, and GCE. Limited-time deal: 40% OFF for 4 Months + 40 Free Migrations.
platform.cloudways.com