Skip to content
This repository was archived by the owner on Aug 24, 2026. It is now read-only.
 
 

Repository files navigation

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.

About

⚗️ Adds code analysis to Laravel improving developer productivity and code quality.

Topics

Resources

Contributing

Stars

16 stars

Watchers

3 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages