Package

Nunomaduro Larastan

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

Package

nunomaduro/larastan

View on GitHub →

Overview

What Nunomaduro Larastan does

Larastan is an extension for PHPStan tailored to enhance static analysis in Laravel projects, helping developers catch bugs before they write tests.

This tool stands out by marrying Laravel’s dynamic features with static typing, aiming to boost code quality and developer productivity. It transforms the traditional static analysis approach, making it suitable for Laravel by booting the application's container to resolve runtime-specific types, thus offering a more comprehensive analysis than standard static analysis tools.

Developers integrate Larastan into their workflow by installing it as a development dependency using Composer. Once set up, it requires the creation of a phpstan.neon configuration file, where specific analysis paths and levels are set. This facilitates starting the analysis process via the PHPStan console command, making it straightforward to incorporate into existing projects.

The package also provides flexibility for legacy codebases through the use of a baseline file. This feature allows teams to document current errors, enabling them to focus on maintaining high standards in new code without being bogged down by past issues. Within complex Laravel projects, Larastan helps spot errors that might otherwise only surface at runtime, offering a preventive measure in the coding process.

This overview was generated by AI from the package README and may not reflect the latest release.

Read the full README →

Nunomaduro Larastan Related Articles

Larastan v1.0 Released image

Larastan v1.0 Released

Read article
PestPHP Released as Open-Source image

PestPHP Released as Open-Source

Read article
No Compromises logo

No Compromises

Joel and Aaron, the two seasoned devs from the No Compromises podcast, are now available to hire for your Laravel project. ⬧ Flat rate of $9500/mo. ⬧ No lengthy sales process. ⬧ No contracts. ⬧ 100% money back guarantee.

No Compromises
Pushsilver logo

Pushsilver

Pushsilver is simple invoicing for freelancers and small studios — send polished invoices, automate reminders, and get paid on time without the bloat.

Pushsilver
Acquaint Softtech logo

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech
PhpStorm logo

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing