larastan/larastan
⚗️ Adds code analysis to Laravel improving developer productivity and code quality. observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 86
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 9
- age_days: 2987
- days_rel: 97
- days_push: 7
- n_releases_24m: 38
Adoption not part of the score
6493 stars · 506 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Larastan is a PHPStan extension that adds code analysis to Laravel applications, understanding Laravel's runtime magic to find bugs before tests are written. It boots the application container to resolve types that are only computable at runtime.
Use cases
- find bugs in my laravel app before writing tests
- add static analysis to a laravel project
- improve code quality in php laravel codebase
- get type checking for laravel facades and eloquent models
- run phpstan on laravel with framework support
When to choose
- you maintain a Laravel application or package and want static analysis
- you want PHPStan to understand Laravel's magic methods and container resolution
- you want to catch bug classes early in CI
When to avoid
- your project is not built on Laravel
- you need generic PHP static analysis without framework-specific support (use plain PHPStan)
Facets
library · maturity active
linter type-system developer-tools testing developer-tools web-development backend php cli laravel phpstan static-analysis code-quality php
1 source
- readme: https://github.com/larastan/larastan · fetched 2026-08-28 · cea683e6b367
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| larastan/larastan | main | 95 |
For agents
markdown · JSON · MCP: product_card(name="larastan/larastan")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem