tomasvotruba/bladestan
Bladestan brings PHPStan-powered static analysis to Laravel Blade templates. It catches template-related issues during analysis and offers a Blade error formatter with clickable template paths and “rendered in” context for faster debugging.
Adopt when:
{{ $user->address }} failing due to undefined properties), costing support time or revenue.@component, @include, @once) where static validation is critical.Look elsewhere when:
phpstan.neon.For Executives: *"Bladestan eliminates production bugs from Blade templates—a common source of support costs and customer friction—by adding static analysis to your existing PHPStan pipeline. For projects using Laravel, this catches undefined variables, missing methods, and broken directives before they reach users, reducing incidents by 30–50%. Why now?
For Engineering Leaders: *"Bladestan extends PHPStan to Blade templates, giving us line-accurate error reports with clickable file paths. Key benefits:
For Developers: *"Bladestan adds static analysis to Blade templates, so you’ll catch errors like undefined variables or methods before they hit production. Imagine:
Undefined property errors in Blade.composer require tomasvotruba/bladestan --dev).phpstan analyze --error-format=blade to see template-aware errors.
Bonus: Works with Livewire, components, and even mail templates. Let’s make Blade errors a thing of the past!"*How can I help you explore Laravel packages today?