magentron/laravel-blade-lint
Laravel Blade Lint validates Blade templates and reports syntax errors, malformed directives, and other template issues before they reach production. Use its Artisan command locally or in CI to keep views clean and catch mistakes early.
Adopt when:
php artisan view:cache will catch compile errors today, but it compiles everything into the cache as a side effect and gives coarser failure output. If that is already good enough for you, this package's marginal value is small and you should say so internally.require-dev dependency with a pinned version, and has been reviewed for what it executes in your build environment.Look elsewhere or hold when:
composer.json. If legal says no, view:cache in CI is your fallback.To executives (one paragraph): A small, low-cost addition to our CI pipeline that closes a specific reliability gap: Laravel page templates are only validated when a user actually loads the page, so a broken template in a low-traffic or admin-only screen can reach production undetected and surface as a hard error in front of a customer. This tool checks every template before merge in seconds. It is a development-only dependency with no production runtime footprint, no performance impact, and no architectural commitment — we can remove it in one line. The one caveat is its GPL-3.0 license, which we need legal to clear before it enters the build, and its small maintainer base, which we mitigate by pinning the version and reviewing the source. Recommended as a low-risk quality-gate add, contingent on legal sign-off.
To engineering (short): Adds a single artisan lint command over all Blade templates suitable for a per-PR CI step — fast, isolated per-file failures, doesn't touch the compiled view cache. Complementary to Larastan, not a replacement for rendering tests. Install as require-dev, pin it, and vendor the source review because it runs inside CI. If the GPL license blocks us, php artisan view:cache is the zero-dependency substitute, with worse ergonomics and a cache side effect.
How can I help you explore Laravel packages today?