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
PHPInsights v2 is Here image

PHPInsights v2 is Here

Read article
Larastan: Discover Bugs in Your Code Before Running It image

Larastan: Discover Bugs in Your Code Before Running It

Read article
Running PHPStan on max with Laravel image

Running PHPStan on max with Laravel

Read article
Static Analysis Secrets - Laravel In Practice EP13 image

Static Analysis Secrets - Laravel In Practice EP13

Read article
A package for PHP to interact with the GitHub Sponsors GraphQL API image

A package for PHP to interact with the GitHub Sponsors GraphQL API

Read article

Let your users buy domains without leaving your app

If your Laravel app gives users a site, a storefront, or a workspace, they’ll eventually want their own domain. The name.com API lets them search, register, and connect one without leaving your product. It’s a clean REST API, so Laravel’s HTTP client is all you need.

Let your users buy domains without leaving your app

PhpStorm

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

PhpStorm

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

Shift

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

Shift

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum

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