# Larastan

> Adds code analysis to Laravel, improving developer productivity and code quality

Source: https://talira.ai/catalog/larastan-gxbmk034
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin
- Categories: [developer tools / type checking](https://talira.ai/categories/developer-tools/type-checking), [developer tools / code quality](https://talira.ai/categories/developer-tools/code-quality), [languages / php](https://talira.ai/categories/languages/php)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Larastan](https://talira.ai/orgs/larastan.md)

Larastan is a [PHPStan](https://talira.ai/catalog/phpstan-5dffx9mn.md) extension for [Laravel](https://talira.ai/catalog/laravel-4d4w140j.md) that finds errors in Laravel code without running it, catching whole classes of bugs before you write tests. It adds static typing to Laravel apps and supports most of Laravel's magic, and unlike plain static analysis it boots the application to resolve what Laravel only knows at runtime. It was created by Can Vural and Nuno Maduro.

## Links

- GitHub: https://github.com/larastan/larastan

## Problems it solves

- find bugs in my Laravel app before running it
- make PHPStan understand Laravel facades and Eloquent models
- add static type checking to a Laravel project

## Features

- PHPStan extension for Laravel apps
- supports most of Laravel's magic
- finds bugs before tests are written

## Trust

Overall: 0.70 out of 1.
Signals: maintenance 1.00, adoption 0.76, momentum 0.55, community 0.94, backing 0.30, extensibility 0.00.

- last commit 7 days ago
- 166 commits in the last 90 days
- latest release v3.15.0 18 days ago
- 6.6k GitHub stars
- 219 contributors
- accepts sponsorship (Github)
- has a company behind it

## Related

- Works with [PHPStan](https://talira.ai/catalog/phpstan-5dffx9mn.md)
- Works with [Laravel](https://talira.ai/catalog/laravel-4d4w140j.md)

## Alternatives

- [Psalm Laravel plugin](https://talira.ai/catalog/psalm-laravel-plugin-4q24xcnp.md): Laravel static analysis and taint-based security scanning for Psalm
- [PHPStan](https://talira.ai/catalog/phpstan-5dffx9mn.md): PHP static analysis that finds bugs without running your code
- [TypeScript](https://talira.ai/catalog/typescript-w0asrgz8.md): JavaScript with static types, compiled to plain JavaScript
- [Flow](https://talira.ai/catalog/flow-ss3d2chg.md): A static type checker and typed dialect of JavaScript
- [Steep](https://talira.ai/catalog/steep-b16cnbv6.md): Gradual typing for Ruby

## Sources

[^1]: https://github.com/larastan/larastan/blob/3.x/LICENSE.md (checked 28 Nov 2026)
