Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Blade X Laravel Package

spatie/laravel-blade-x

Blade-X brings Blade-style HTML components to Laravel 6 and below, letting you use tags like instead of @include. Package is abandoned because Laravel 7+ has native Blade components; migrate when upgrading.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Legacy System Modernization: Justify continued use of spatie/laravel-blade-x for Laravel 6.x projects to avoid breaking changes during migration to Laravel 7+.
  • Component-Driven UI: Accelerate adoption of reusable, self-contained Blade components for teams already invested in Laravel 6.x, reducing boilerplate and improving maintainability.
  • Build vs. Buy: Avoid reinventing Blade component syntax for Laravel 6.x projects where native Laravel 7+ support isn’t an option (e.g., long-term support for older systems).
  • Developer Experience: Improve DX for frontend teams by enabling cleaner, more intuitive Blade syntax (e.g., <my-alert> vs. @include) without upgrading the entire stack.
  • Migration Strategy: Use as a temporary bridge for teams planning a phased Laravel 7+ upgrade, allowing incremental adoption of native Blade components.

When to Consider This Package

  • Laravel 6.x or Below: Only viable for projects locked into these versions due to dependencies, legacy constraints, or migration timelines.
  • No Immediate Upgrade Path: Avoid if the team can upgrade to Laravel 7+ (native Blade components exist) or Laravel 8+ (enhanced component features).
  • New Projects: Do not use—opt for native Laravel Blade components or modern alternatives (e.g., Livewire, Inertia.js, or Alpine.js for dynamic UIs).
  • Complex Component Needs: Look elsewhere (e.g., custom Blade directives or Tailwind/Alpine) if you require advanced features like slots, props validation, or dynamic class binding.
  • Active Maintenance: Prioritize alternatives if the project has a roadmap to drop Laravel 6.x (package is archived, no updates since 2020).

How to Pitch It (Stakeholders)

For Executives:

"This package lets our frontend team build reusable UI components in Laravel 6.x with cleaner syntax (e.g., <my-alert> instead of @include), reducing technical debt and speeding up development. It’s a low-risk way to modernize Blade templates without upgrading the entire stack—critical for legacy systems or projects with constrained timelines. Since Laravel 7+ already supports this natively, it’s a temporary but valuable tool for teams stuck on older versions."

For Engineering/Tech Leads:

*"Spatie’s laravel-blade-x provides a lightweight, MIT-licensed way to use modern Blade component syntax in Laravel 6.x. It’s ideal for:

  • Legacy projects where upgrading isn’t feasible yet.
  • Teams wanting to adopt component-based Blade views without rewriting templates.
  • Short-term gains in maintainability and readability. Tradeoff: It’s archived (no future updates), so plan to migrate to native Laravel 7+ components once possible. For new projects, skip this and use Laravel’s built-in features or alternatives like Livewire."*

For Developers:

"This package lets you write Blade components like <card> or <alert> instead of @include('card'), with props and slots support. It’s a game-changer for Laravel 6.x if you’re tired of verbose @include calls. Just add it via Composer, and you’re good to go—no complex setup. But: Only use it if you’re stuck on Laravel 6.x. Once you upgrade, switch to native components or modern tools."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai