This is an external open-source GitHub repository imported into the WOCSOL Marketplace for discovery. The original repository owner is the primary creator.
⚗️ Adds code analysis to Laravel improving developer productivity and code quality.
⚗️ Adds code analysis to Laravel improving developer productivity and code quality.
------ ## ⚗️ About Larastan Larastan was created by [Can Vural](https://github.com/canvural) and [Nuno Maduro](https://github.com/nunomaduro), got artwork designed by [@Caneco](http://github.com/caneco), is maintained by [Can Vural](https://github.com/canvural), [Nuno Maduro](https://github.com/nunomaduro) and [Viktor Szépe](https://github.com/szepeviktor), and is a [PHPStan](https://phpstan.org/) extension for Laravel. Larastan focuses on **finding errors in your code**. It catches whole classes of bugs even **before you write tests** for the code. - Adds static typing to Laravel to improve developer productivity and **code quality** - Supports most of [Laravel](https://laravel.com)'s **beautiful magic** - Discovers bugs in your code > While by definition, "static analysis" doesn't load any of your application's code. Larastan boots your application's container, so it can resolve types that are only possible to compute at runtime. That's why we use the term "code analysis" instead of "static analysis". ### Supported Laravel versions | Laravel Version | Larastan Version | |--------------------|------------------| | 9.0 && >= 11.16 | 2.x | | 11.16+ | 3.0+ | ## Sponsors ## ✨ Getting Started In 3 Steps > **Requires:** - **[PHP 8.2+](https://php.net/releases/)** - **[Laravel 11.15+](https://github.com/laravel/laravel)** **1**: First, you may use [Composer](https://getcomposer.org) to install Larastan as a development dependency into your Laravel project: ```bash composer require --dev "larastan/larastan:^3.0" ``` > Using Larastan for analysing Laravel packages? You may need to install `orchestra/testbench`. **2**: Then, create a `phpstan.neon` or `phpstan.neon.dist` file in the root of your application. It might look like this: ``` includes: - vendor/larasta
Ask questions or discuss this product. New comments are reviewed before publishing.
Loading comments...