Download the PHP package calebdw/larastan without Composer
On this page you can find all versions of the php package calebdw/larastan. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download calebdw/larastan
More information about calebdw/larastan
Files in calebdw/larastan
Package larastan
Short Description Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel
License MIT
Homepage https://github.com/calebdw/larastan
Informations about the package larastan
[!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.
The migration guide covers the rest: options now nest under
laravel:, error identifiers are prefixedlaravel.instead oflarastan., and a few names changed to say what they actually do.This fork is no longer maintained and will not be updated.
⚗️ 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:
- fix: conditionable calls on relations
- fix: mark macro methods as static only if the closure is static
- feat: add support for Collection, Builder, and Arr pluck
- fix: self::query() for final models
- feat: add optional noModelForwardingToBuilder and noModelStaticForwardingToBuilder
- fix: factory {has,for}* methods should return static
- fix: property type for uuid and ulid primary keys
- fix: collection template types being overwritten
- fix: builder stubs and builder/model forwarding
- fix: handle collection intersection types
- feat: support dynamic relation closures
- feat: add support for config array shapes
- feat: support multiple database connections
- feat: support wildcards in migration/schema paths
- fix: default date casting
- fix: make TGet covariant on Attribute stub
✨ Getting Started
To use this fork, you may use Composer to install it as a development dependency into your Laravel project:
Or if you already have the upstream package installed, you can point your composer.json to this fork:
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:
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.
All versions of larastan with dependencies
ext-json Version *
illuminate/console Version ^11.44.2 || ^12.4.1 || ^13
illuminate/container Version ^11.44.2 || ^12.4.1 || ^13
illuminate/contracts Version ^11.44.2 || ^12.4.1 || ^13
illuminate/database Version ^11.44.2 || ^12.4.1 || ^13
illuminate/http Version ^11.44.2 || ^12.4.1 || ^13
illuminate/pipeline Version ^11.44.2 || ^12.4.1 || ^13
illuminate/support Version ^11.44.2 || ^12.4.1 || ^13
phpmyadmin/sql-parser Version ^5.9.0
phpstan/phpstan Version ^2.2.2