Suggest a tool

PHPStan

Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.

What PHPStan is

PHPStan is a static analysis tool for PHP that reports errors in code without executing it. Its aim is to catch whole categories of bugs before tests exist for the code. The getting-started guide lists PHP 7.4 or later for running the analyser. It is installed with Composer and run as vendor/bin/phpstan analyse against chosen directories. By default only basic checks run, and rule levels switch on stricter ones. Extensions from an extension library are installed through Composer. An online playground is available for trying it. PHPStan Pro is a separate paid add-on with a web UI and a watch mode.

Written from the project's README, read , and its documentation (see sources).

Category
Code quality and static analysis
License
MIT
Language
PHP
Changelog
Releases on GitHub

Repository metrics

Repository metrics
Stars14,1061
Forks9581
Open issues and PRs1,0841
Contributors3081
Commits in the last 90 days5051
Last commit2026-09-221
Last release2.2.14, 2026-09-121
Fetched

1 Fetched from the GitHub or GitLab API on . Hover a value for its own date.

Status

activeLast commit within 90 days of the fetch date.

Computed from the last commit date and the archive flag on the fetch date. See the status rules.

Alternatives

Listed code quality and static analysis tools, same primary language first, then by GitHub stars. Each line gives one fact from the tool's documentation where it differs from PHPStan's, with its source.

Questions

Is PHPStan open source?

Yes. PHPStan is released under MIT, an OSI-approved license, as reported by the GitHub API on 2026-09-22.

Is PHPStan maintained?

On 2026-09-22, the last commit to the default branch was on 2026-09-22, so the listed status is active. Rule: Last commit within 90 days of the fetch date.

How many GitHub stars does PHPStan have?

14,106 stars on 2026-09-22, from the GitHub API. The number is refreshed at each monthly update.

What language is PHPStan written in?

The repository's primary language, as reported by the GitHub API, is PHP.

Sources

  1. GitHub REST API: repository, read
  2. GitHub REST API: commits, read
  3. GitHub REST API: latest release, read
  4. GitHub REST API: contributors, read
  5. README, read
  6. PHPStan docs: Getting Started, read