calebdw/larastan

This package is abandoned and no longer maintained. The author suggests using the calebdw/phpstan-laravel package instead.

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

Maintainers

Package info

github.com/calebdw/larastan

Type:phpstan-extension

pkg:composer/calebdw/larastan

Transparency log

Fund package maintenance!

calebdw

Statistics

Installs: 145 126

Dependents: 2

Suggesters: 0

Stars: 16

Open Issues: 4

v3.12.3 2026-08-07 17:28 UTC

README

Important

This fork has moved to calebdw/phpstan-laravel.

The work here outgrew what a fork could carry. Living downstream of Larastan meant every change had to stay compatible with it, which ruled out renaming confusing options, dropping old version shims, or reorganising anything. phpstan-laravel is the same work as its own package, free to make those decisions, with documentation to match.

composer remove --dev calebdw/larastan
composer require --dev calebdw/phpstan-laravel

The migration guide covers the rest: options now nest under laravel:, error identifiers are prefixed laravel. instead of larastan., and a few names changed to say what they actually do.

This fork is no longer maintained and will not be updated.

Larastan Logo

Larastan Example

Laravel Compatibility Test Results Total Downloads Latest Version License

⚗️ About This Fork

Hello! 👋

This was my fork of larastan/larastan, carrying features and improvements that had been proposed upstream but were not yet available there. It existed to give the community immediate access to those enhancements while staying compatible with the upstream package.

Tip

For Laravel Livewire support, check out larastan-livewire!

🔄 Changes and Upstream PRs

This fork includes the following changes and enhancements:

✨ Getting Started

To use this fork, you may use Composer to install it as a development dependency into your Laravel project:

composer require --dev "calebdw/larastan:^3.0"

Or if you already have the upstream package installed, you can point your composer.json to this fork:

- "larastan/larastan": "^3.0"
+ "calebdw/larastan": "^3.0"

If you have the PHPStan extension installer installed then nothing more is needed, otherwise you will need to manually include the extension in the phpstan.neon(.dist) configuration file:

includes:
    - ./vendor/calebdw/larastan/extension.neon

For more information on how to configure and use Larastan, please refer to the official documentation.

👊🏻 Contributing

Thank you for considering contributing to Larastan. All the contribution guidelines are mentioned here.

📄 License

This fork is open-sourced software licensed under the MIT license.