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


Basic PHPStan repo stats
7 days ago

phpstan/phpstan is an open source project licensed under MIT License which is an OSI approved license.

PHPStan Alternatives

Similar projects and alternatives to PHPStan

  • GitHub repo PHPUnit

    The PHP Unit Testing framework.

  • GitHub repo PHP CS Fixer

    A tool to automatically fix PHP Coding Standards issues

  • GitHub repo PHP Code Sniffer

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

  • GitHub repo GrumPHP

    A PHP code-quality tool

  • GitHub repo PHP-Parallel-Lint

    This tool check syntax of PHP files faster than serial check with fancier output.

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

  • GitHub repo LimeSurvey

    The most popular FOSS online survey tool on the web.

  • GitHub repo PCOV

    PCOV - CodeCoverage compatible driver for PHP

  • GitHub repo cancel-workflow-action

    ⏹️ GitHub Action to cancel previous running workflows on push

  • GitHub repo magento-coding-standard

    Magento Coding Standard

  • GitHub repo security-checker

    A PHP dependency vulnerabilities scanner based on the Security Advisories Database. (by enlightn)

  • GitHub repo magento2-grumphp

    Ultimate GrumPHP configuration for Magento 2 automated code quality checks

  • GitHub repo grumphp-swagger

    GrumPHP Swagger check

  • GitHub repo actions

NOTE: The number of mentions on this list indicates mentions on common posts. Hence, a higher number means a better PHPStan alternative or higher similarity.


Posts where PHPStan has been mentioned. We have used some of these posts to build our list of alternatives and similar projects - the last one was on 2021-04-11.
  • Automating code quality check using GrumPHP in Magento 2 | 2021-04-11
  • Avoiding type inference false-positives with flow-sensitive conditional analysis | 2021-03-16
    > You might be aware already, but the examples aren't the same

    Yeah, because both TS and PHP have the same treatment of `!expr` I use the two interchangeably when demonstrating functionality, but the exactly comparable example is here:

    > BTW, Psalm seems really cool! I've not used PHP in a long time, but I always felt it lacks tooling, so it's great to see people are making progress in that area.

    Yeah, it's not the only open-source static analysis tool for PHP – there's also, which is even more popular

  • A nice PHP CI pipeline | 2021-02-23
  • Why developers hate PHP | 2021-02-22
    PHP7 is faster than Python and Ruby. The language can be strongly typed if you wish. Tooling is also evolving with static parsers that have appeared in recent years. Frameworks like Symfony or Zend force good practices. A new version is released every year with a very precise agenda. Moreover PHP7.4 is here with even more performance. Once again I won't list everything that is happening in modern PHP for the sake of length. If you want to know everything I invite you to read this article. It's time to change your vision on this language that has nothing to do with what it used to be.
  • How I take care of code quality with GrumPHP | 2021-01-30
    The PHPStan task focuses on finding errors in your code without actually running it. It catches whole classes of bugs even before you write tests for the code