Weave 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 Htmx Laravel Package

mauricius/laravel-htmx

mauricius/laravel-htmx integrates HTMX with Laravel through Blade directives, HTMX-aware middleware, response helpers, and validation support. It helps detect HTMX requests, return partial responses, and build fast, dynamic, server-rendered interfaces with minimal custom JavaScript.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Frontend strategy / build vs. buy: This package is a thin, low-cost layer that makes htmx practical in a Blade-first Laravel app. Adopting it supports the decision to avoid a full SPA replatform (Vue/React/Inertia) for interactive-but-server-rendered surfaces — forms, filters, inline edit, modals, polling, infinite scroll, dependent dropdowns.
  • Roadmap sequencing: Enables "modernize the UI" or "make the admin more interactive" roadmap items to ship incrementally per screen, rather than as a big-bang frontend migration. Each screen can be upgraded independently with hx-* attributes.
  • Feature delivery speed: Provides Blade components for htmx attributes plus helpers for HX-* response headers (triggers, redirects, push-URL, swap, retarget) — the boilerplate a team would otherwise hand-roll in every controller. Reduces per-feature effort and inconsistency.
  • Hiring/team shape: Optimizes for a PHP-heavy team. It removes the need for dedicated frontend specialists for standard CRUD/dashboard interactivity, which is a real cost and staffing decision, not just a technical one.
  • Platform currency (this release): v0.10.0 adds Laravel 13.x compatibility and a maintenance pass. This clears Laravel-upgrade work as a blocker for teams standardizing on 13.x — a small but real input to the "when do we upgrade the framework" decision.
  • Vendor lock-in / reversibility: hx-* attributes are plain HTML and the helpers are thin wrappers. This is a decision you can unwind cheaply if the package stalls, which lowers the risk premium on adopting it at all.

When to Consider This Package

Adopt when:

  • The app is Blade-first with server-rendered views, and the team wants progressive enhancement with no JS build step.
  • The interactive needs are htmx-shaped: partial page updates, form validation feedback, lazy loading, polling, search-as-you-type, modal/drawer flows.
  • You want consistent HX-* response handling across controllers instead of ad-hoc header code.
  • You need Laravel 13 support — note this only lands in v0.10.0; anything pinned below that will not be compatible. Verify the package's version matrix against your Laravel/PHP constraints before committing.

Look elsewhere when:

  • You need substantial client-side state, offline support, rich drag-and-drop, or complex real-time collaboration — htmx itself is the wrong tool, so the wrapper is too.
  • The team already has Livewire, Inertia, or a Vue/React investment; adding a second interactivity paradigm creates inconsistency and split ownership.
  • You need a support SLA, security review, or long-term vendor commitment. This is a 0.x, single-maintainer package; treat API stability as best-effort.
  • You require audited handling of htmx-specific concerns (CSRF, history/URL semantics, caching) beyond what the package provides.
  • You only need one or two htmx attributes — plain HTML plus a couple of Blade components is cheaper than a dependency.

Mitigation if adopting: pin the version, wrap usage behind a small internal convention or your own components, and keep the abstraction shallow so replacement is a day's work, not a quarter's.

How to Pitch It (Stakeholders)

For executives: We can deliver interactive UI — faster forms, inline edits, live filters, partial refreshes — without hiring frontend specialists or funding an SPA migration. It is a small, thin package on top of an established, well-understood browser technique (htmx), so the cost is low and the reversibility is high: if it goes stale, our exposure is a handful of Blade templates, not our architecture. The v0.10.0 release confirms active maintenance and adds Laravel 13 support, so it is not a blocker to our framework upgrade path.

For engineering: Focused package, minimal surface: Blade components for hx-* attributes and helpers for HX-* response headers. One maintainer, still on 0.x — pin it and keep it behind a thin internal layer so we can vendor or replace it without touching call sites. v0.10.0 is maintenance-only (Laravel 13 compat); no breaking changes or new features, so there is no migration work for existing users beyond the framework bump.

Ask: Pilot on one internal or CRUD-heavy surface, measure development time and UI consistency against our current approach, then decide whether to standardize or keep it scoped.

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.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource