acrolink
Any experiences on the topic? Anyone ditched Laravel in favor of Phoenix/Elixir?
Trending in Discussions
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
New
The obligatory hello world thread!
Who are you and where are you from? :stuck_out_tongue:
New
@chrismccord : I just saw the Extract AGENTS.md from Phoenix.new into phx.new generator commit to the phoenix project.
My initial shotgu...
New
I was working on an Ecto migration and I needed a timestamp. So, for the nth time, I looked up the different data types for timestamps, a...
New
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog
It says that Fly is going all-in on sprites, which is a worry ...
New
We’re evaluating API mocking tools for OpenAPI-based projects and would love to hear what other teams are using.
We’re particularly inte...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
There are three potential reasons for members of this forum to have a look at https://vutuv.de
You are tired or annoyed of LinkedIn.
Yo...
New
Latest Phoenix Threads
Chat & Discussions>Discussions
Latest on Elixir Forum
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #blog-post
- #phoenix_html
- #iex
- #graphql
- #ai
- #genstage
- #elixirconf-us
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex










First 4 of 4 Posts
w0rd-driven
I haven’t ditched Laravel but I have heavy investments in both camps. Phoenix isn’t really 1:1, it’s closer to a Sinatra where something like Rails has more overlap with Laravel. You get different primitives with the BEAM where you don’t need to reach for something like Redis since ETS is right there. Oban is arguably a better queue processor than what Laravel gives you but Laravel also gives you Horizon. You can work out some intricate workflows in either system. It may be user error but I don’t have a clear look at what jobs are actively running in Horizon where I have more tools to monitor Oban. I haven’t tried recreating my most difficult workflows from Laravel to know how those pain points measure up.
You can piece together a few dependencies to get you close experiences I’d imagine. There is also a difference in underlying behavior.
Dependencies are a liability in any system but in Laravel I’m more of a conductor, gluing fairly robust packages together to rapidly focus on the business need. I’ve maybe “chosen poorly” for a problematic package very few times since starting with it in 2017. With Elixir it’s generally easy to spin up an API client on top of Req as opposed to finding a poorly maintained SDK, with the exception of Stripe and Spotify so far. There is no Spatie equivalent dropping a ton of high quality in one place but there is some very high quality in the ecosystem.
Laravel is also a layer higher or tends to stay there. I believe it started by pulling a lot from Symfony to slowly get replaced by Illuminate APIs. Phoenix acts as a thin layer on Plug on purpose. There are parts of something like Ash that is also appealing from a reduction of boilerplate perspective.
This is all over the place like my experience so far. I haven’t rebuilt major systems to have the biggest sample size but given enough time and energy there isn’t anything I’ve missed in a major way. I am looking to see if something like Jetstream can be ported because scaffolding an application shell takes a lot of boilerplate that I get really tired of doing as often as it requires. 1.7 and core components are a great start but I need a bit less friction.
RudManusachi
I don’t disagree, but to be fair, I’d compare bare bone Plug more to Sinatra.. whereas when people refer to Phoenix most of the time they mean Phoenix + PhoenixHTML + Phoenix.LiveView + Phoenix.PubSub + Swoosh + Ecto + … on Elixir
Which, I think includes enough batteries to be on par with a regular PHP Laravel / Ruby on Rails project.
carterbryden
I was primarily building stuff with laravel before moving to Phoenix several years ago. I’m not very hands-on up to date with laravel since about v5 but I still keep an eye on things. I
originally looked elsewhere because I was doing a fair bit of real-time/websocket stuff and I always had to reach outside of PHP and laravel to do that anyways. And I was interested in the mental model of functional programming - or at least the very basics of it - as compared to OOP. Functional just felt so much more direct and easier for me to reason about, personally.
My general thoughts on Phoenix vs Laravel, in no particular order:
acrolink
@carterbryden @w0rd-driven @RudManusachi
Thank you very much for sharing. That would help me make my future decisions. Personally, I like them both. Despite my limited development experience in Elixir and Phoenix (only with small projects), I would choose it over Laravel especially if the project has real time and high concurrency needs.