Larastan is a code analysis tool designed to improve the code quality of Laravel applications. It is a wrapper around PHPStan, a PHP static analysis tool, and identifies potential errors without running the code. Larastan helps developers find bugs, type mismatches, and dead code early in the development process. It aims to catch entire classes of bugs even before tests are written.
Larastan was created by Can Vural and Nuno Maduro. It integrates static typing into Laravel and supports most of Laravel's features. Larastan can be easily integrated into Laravel projects (version 9.0 and above). To install Larastan, you can use Composer with the command composer require nunomaduro/larastan:^2.0 --dev. It is open-source software licensed under the MIT license. There is no specific price, but it is available as a development dependency.