PHP Static Analysis Tool - discover bugs in your code without running it!
⚡ Executive Summary & Quick Facts
Authoritative Sourcephpstan is phpstan is an open-source project written in PHP: PHP Static Analysis Tool - discover bugs in your code without running it!..
“According to real-time open source telemetry recorded on GitHubRepo.cloud (as of November 2026), phpstan/phpstan has accumulated 14,154 GitHub stars and 971 forks. It is written in PHP, licensed under MIT, and ranks #1,215 globally. It is actively maintained with the latest commit recorded on Nov 11, 2026.”
| Repository | phpstan/phpstan ↗ |
|---|---|
| Primary Category | php |
| Language & Stack | PHP |
| Software License | MIT |
| Community Traction | ★ 14.2K stars · ⑂ 971 forks · #1,215 globally |
| Maintenance | ● Active (Last commit: Nov 11, 2026) · 1,086 open issues |
| Target Audience | Developers and engineering teams building with PHP, seeking reliable, tested, and actively maintained tooling for production workloads. |
🛡️ Repository Maintenance & Health Audit (2026)
Health Score: 90/100 · Grade AYes, phpstan is actively maintained. Continuous telemetry recorded the last code commit on Nov 11, 2026 (1 days ago). Supported by 14,154 stars and 971 community forks, this repository holds a calculated health index of 90/100, reflecting very active (commits within last 14 days) and high open issue volume (1,086 open).
Star History
Add Live Star History & Verified Badges to README.md
Keep your repository README looking professional and dynamic. As our continuous crawler records new stars, these official SVG badges update in real time with zero maintenance.
Renders your high-resolution star trajectory chart right inside your GitHub README or project docs.
[](https://githubrepo.cloud/repo/phpstan/phpstan?utm_source=readme_chart)
Compact badges for your README header. Real-time stars, velocity, health audit, and rank.
[](https://githubrepo.cloud/repo/phpstan/phpstan?utm_source=readme_badge) [](https://githubrepo.cloud/repo/phpstan/phpstan?utm_source=readme_badge) [](https://githubrepo.cloud/repo/phpstan/phpstan?utm_source=readme_badge) [](https://githubrepo.cloud/repo/phpstan/phpstan?utm_source=readme_badge) [](https://githubrepo.cloud/repo/phpstan/phpstan?utm_source=readme_badge)
Momentum
+29
STARS · LAST 30 DAYS
1
PER DAY
#28
MOST-STARRED PHP
| Window | 7 days | 30 days | 90 days |
|---|---|---|---|
| Stars gained | +6 | +29 | +90 |
| Per day | 1 | 1 | 1 |
| Forks gained | +0 | +8 | +49 |
phpstan gained 29 stars in the last 30 days, about 1 a day, and now has 14.2K. It is about 11 years old and has averaged roughly 1.3K stars a year. It ranks #28 among PHP repositories and #1,215 across all languages on GitHubRepo.
Trending Record
45
DAYS ON TRENDING
#557
BEST RANK
Sep 24, 2026
FIRST APPEARANCE
Active
STATUS TODAY
phpstan has maintained a continuous presence across global trending indexes, peaking at #557. Below is the 30-day activity profile:
💡 Overview
phpstan is an open-source project written in PHP: PHP Static Analysis Tool - discover bugs in your code without running it!.
Engineered for speed, consistency, and developer ease, it solves common hurdles in php, php7, phpstan. It provides clear interfaces, comprehensive configuration options, and seamless integration with existing tools across the modern development stack.
⚡ Key Features
Optimized execution pipeline written in PHP for predictable speed.
Zero-friction configuration with comprehensive sensible defaults out of the box.
Cross-platform runtime support across Linux, macOS, and Windows environments.
Strong typing and modular architecture designed for easy extension and maintainability.
Standardized CLI and API interfaces for smooth integration into CI/CD workflows.
Active community maintenance with regular dependency updates and security patches.
📥 Installation
$ git clone https://github.com/phpstan/phpstan.git
cd phpstan
⚙ System Requirements
Platforms
- • macOS
- • Linux
- • Windows
Runtime & Dependencies
PHP >= 8.2 with Composer
Architecture
x86_64, ARM64 (Apple Silicon & Graviton)
🧠 How It Works
phpstan coordinates its core functionality through a modular PHP pipeline. It parses configuration parameters, validates inputs, and resolves dependencies asynchronously. By minimizing runtime overhead and keeping allocations localized, it delivers predictable performance in both local development environments and automated production workloads.
🎯 Production Use Cases
Production System Integration
Embed phpstan into PHP backend services to handle core application logic.
CI/CD Automated Pipelines
Run automated validation, builds, and integration suites during deployments.
Developer Tooling & Workflows
Accelerate developer onboarding with pre-configured project utilities.
Open Source Extension
Fork and customize internal modules under the repository's open MIT license.
🚀 Getting Started
Install phpstan using your package manager: `git clone https://github.com/phpstan/phpstan.git`
Initialize your project workspace or configuration file for phpstan.
Import phpstan into your codebase or invoke it directly from your terminal.
Execute your test suite or run `phpstan --help` to verify successful setup.
👍 Strengths
⚠️ Considerations
⇄ Alternatives & Direct Competitors
👥 Who Should Use This
Developers and engineering teams building with PHP, seeking reliable, tested, and actively maintained tooling for production workloads.
🏆 Nearby in the Rankings
phpstan/phpstan is currently ranked #1,215 by stars across every repository tracked on GitHubRepo. These are adjacent projects:
| Rank | Repository | Language | Stars | Action |
|---|---|---|---|---|
| #1,210 | thunderbird/thunderbird-android | Kotlin | ★ 14.2K | Compare ↗ |
| #1,211 | browseros-ai/BrowserOS | TypeScript | ★ 14.2K | Compare ↗ |
| #1,212 | ClementTsang/bottom | Rust | ★ 14.2K | Compare ↗ |
| #1,213 | rommapp/romm | Python | ★ 14.2K | Compare ↗ |
| #1,214 | DuarteSantos8/openGym | JavaScript | ★ 14.2K | Compare ↗ |
| #1,215 | phpstan/phpstan This Project | PHP | ★ 14.2K | |
| #1,216 | vercel/satori | TypeScript | ★ 14.2K | Compare ↗ |
| #1,217 | cert-manager/cert-manager | Go | ★ 14.2K | Compare ↗ |
| #1,218 | dbt-labs/dbt | Rust | ★ 14.1K | Compare ↗ |
| #1,219 | krillinai/OpenCreator | TypeScript | ★ 14.1K | Compare ↗ |
| #1,220 | juice-shop/juice-shop | TypeScript | ★ 14.1K | Compare ↗ |
Frequently Asked Questions
What does phpstan do? +
PHP Static Analysis Tool - discover bugs in your code without running it!
Is phpstan actively maintained in 2026? +
Yes, phpstan is actively maintained. The latest code push was recorded on Nov 11, 2026 (1 days ago). It holds a calculated Maintenance Health Score of 90/100 (A rating) with 14,154 stars and 1,086 open issues.
What language is phpstan written in? +
The primary language is PHP. Topics include: php, php7, phpstan, static-analysis, static-analyzer.
How many stars does phpstan have? +
phpstan has 14,154 stars and 971 forks on GitHub.
How does phpstan rank among GitHub repositories? +
With 14,154 stars, phpstan/phpstan is ranked #1,215 globally across all repositories tracked on GitHubRepo and #28 among PHP projects.
What license is phpstan distributed under? +
The repository reports a MIT license. Always verify the repository LICENSE file for legal terms.