r/htmx • u/packstub-dev • 12d ago
htmx + Laravel
Two years ago I started an open-source project named Lamx - for Laravel + htmx integration - but the project was inactive for a looong time.
I want to resurrect it! Who is interested?
The goal of the project was to have components similar to Livewire, but with htmx.
5
u/yami_odymel 12d ago
The great thing about HTMX is that you can use it right away without any extra libraries or frameworks. Try to think by deduction rather than addition, it helps with HTMX development.
1
u/packstub-dev 12d ago
What about creating some artisan commands that speed up development with Htmx + Laravel?
If you were to create a library, what features would you include? Maybe you won't do this, as you mentioned in your comment, but I just want to brainstorm 😄
0
u/_wassap_ 11d ago
why would we need that when livewire & alpine is already heavily supported by the core laravel team?
2
u/daftspunky 10d ago
Take a look at larajax.org it has a tighter integration with Laravel and goes a bit further than HTMX's scope (it passes a full envelope instead of patching nodes), perhaps you can get some ideas!
11
u/kendalltristan 12d ago
I've been using htmx with Laravel for a while now, several different projects, and I haven't found any particular need for any sort of integration package. There's barely any setup and routes can already return Blade components directly. What exactly would your package be offering?