Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

olimejj's avatar

Can Elm be used effectively with Laravel? Can I just replace Vue with Elm?

I'm getting into Laravel right now and really liking it so far. I have some php experience with most of my web development being done in drupal and wordpress. So far I find for my needs Laravel is more flexible and easier to develop in then wordpress. It also seems to be simpler and friendlier for learning then Drupal.

Okay back to business. I really don't enjoy working with javascript. I'm very un-experienced and I just don't enjoy it. Have been looking into Elm and I'm finding that I like it a lot better. How complicated would it be for me to just drop elm into the place of Vue.js? Are there any materials/tutorials on this?

Last question, Am I just crazy for even wanting this?

0 likes
3 replies
bobbybouwmann's avatar

Yeah, you can use Elm just fine with Laravel. Here is a great package that can help realize that: https://github.com/tightenco/laravel-elm

You're not crazy for wanting this ;) You're trying to combine two great technologies. That's what we all do in the end ;)

1 like
sirhxalot's avatar

Hi @olimejj! First of all changing the frontend to your prefered way is a good idea - every developer should be confident with the tools he/she's using.

Laravel does not dictate any frontend libraries at all - even vie.js is optional - take a peak to: https://laravel.com/docs/6.x/frontend

I am not aware of elm but i didnt see any problems with the integration?

Maybe the following will help to getting started: https://github.com/tightenco/laravel-elm

1 like
olimejj's avatar

Thank you @bobbybouwmann and @sirhxalot both being both very helpful and very encouraging! I'm playing around with this for personal projects and hope to be able to pull this into my work environment if things go well :)

Please or to participate in this conversation.