phpstan/phpstan

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

View on GitHub ↗Jump to charts ↓Open shareable report →

phpstan/phpstan has 14k+ stars and 950+ forks on GitHub, is written in PHP, and was last pushed on Oct 14, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 1 hour ago
Added to GitGenius on September 4th, 2026
Created on January 4th, 2016
Open Issues & Pull Requests: 1,166 (+0)
GitHub issues: Enabled
Number of forks: 968
Total Stargazers: 14,130 (+0)
Total Subscribers: 157 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 2.9 hours
Mean response time: 89.2 days
90th percentile: 222.0 days
Tracked items: 2,906

Maintainer activity

4 people did triage or write work on this repository in the last 12 months.

Counts unlabeled, assigned, unassigned, milestoned, demilestoned, locked, unlocked over the last 12 months. These are issue and pull request events that require triage or write permission. Commits and code review are not counted. labeled and renamed are excluded because GitHub issue forms record the issue author as the actor. Figures from October 11, 2026. This count is not comparable across projects: each project's automation decides which of these events a person emits.

How this project is maintained

Roughly one issue in four opened in the past year never receives a reply. 98% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. 46% of tracked open issues have had no activity in three months. 69% of issues opened in the past year have been closed, leaving a working backlog. Three people close 90% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 827
New in 7 days: 26
Closed in 7 days: 9
Avg open age: 614 days
Stale 30+ days: 690
Stale 90+ days: 554

Recent activity

Opened in 7 days: 20
Closed in 7 days: 6
Comments in 7 days: 57
Events in 7 days: 127

Top labels

  • bug (1,308)
  • feature-request (797)
  • performance (51)
  • Pro (14)
  • website (9)
  • agentic-workflows (5)
  • waiting for reproducer (5)
  • dependencies (1)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

PHPStan is a static analysis tool for PHP that discovers bugs in code without executing it.

PHPStan addresses the problem that dynamic languages like PHP allow errors to slip through until runtime. The tool performs static analysis by examining your code and catching entire classes of bugs before tests are written or code is run. It works by analyzing type safety, undefined variables, incorrect method calls, and other issues that would normally only surface during execution, bringing PHP closer to the safety guarantees of compiled languages.

PHPStan suits any PHP project where code quality and early bug detection matter. It works well for teams wanting to catch errors before they reach production and for codebases where runtime testing alone is insufficient. The tool is particularly valuable in larger projects where the cost of bugs is high. Developers should adopt it if they want to shift error detection left in their development cycle and reduce the surface area of potential runtime failures.

The project maintains active test coverage with continuous integration workflows. Development activity shows consistent engagement with the codebase through regular updates and refinements to analysis capabilities. The tool has established sponsorship support from multiple organizations, indicating sustained backing for ongoing maintenance and development.