hughstimson,

Due to some questionable life choices, I need to use PHP/MySQL for the back end of a simple web app. In particular for user authentication.

I'm coming from Django (which I like) and .NET MVC (which is OK I guess). Which PHP framework will I vibe with the best? I see words like "Laravel" and "Symfony". Are these any good?

shawnhooper,
@shawnhooper@fosstodon.org avatar

@hughstimson another vote for Laravel here. Really good documentation and a great ecosystem of products and people around it.

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@hughstimson do yourself a favor, and just follow a tutorial for a dedicated auth provider

of course you could go frameworkless and use

if there are more requirements than originally posted, please do share; but otherwise this seems to me to lay out all options where you get to change tech, but keep auth layer.

hughstimson,

@lewiscowles1986 ah interesting thanks

Crell,
@Crell@phpc.social avatar

@hughstimson Those are the 2 most popular frameworks. Both have very large ecosystems and supporters/fans/zealots.

Symfony is the superior code base, by a wide margin. Feels a lot like Spring Boot in Java. Laravel emphasizes "get stuff up fast" over code quality or maintainability.

Between them, I favor Symfony. There's also Slim if you want something with far fewer moving parts, where you do more work yourself. Kinda like Flask, I think.

Crell,
@Crell@phpc.social avatar

@hughstimson I've not used Django myself, but from the bits I've seen it's closer to Slim or Symfony than to Laravel.

If relying in magic and globals annoys you, avoid Laravel.

hughstimson,

@Crell Thanks for that analysis. That's helpful.

deleugpn,
@deleugpn@fosstodon.org avatar

@hughstimson @Crell it’s also quite bull. Laravel has the best development experience across the web and has just been featured as potentially the happiest community on GitHub

https://github.com/readme/featured/laravel-community

rdohms,
@rdohms@phpc.social avatar

@deleugpn @hughstimson @Crell there is really no need to call opinions "bull". Nowhere was happiness or best developer experience argued, his view was based on code values and style of coding. People can be happy and not aligned with those goals and vice versa.

Calm down, add to the conversation and don't go for open hostility.

deleugpn,
@deleugpn@fosstodon.org avatar

@rdohms @hughstimson @Crell there is when that’s what those opinions are. I work with Laravel for nearly 8 years and nowhere in my codebase there’s globals or “magic”. Crell is a known Laravel hater and when folks spread hate in the world it’s bound to trickle back. He could have said all the nice things that Symfony has and left Laravel out of it but he can’t miss the opportunity. He’s like an anti-religious fanatic spreading hate because he can’t understand it

Crell,
@Crell@phpc.social avatar

@deleugpn @rdohms @hughstimson Every facade is a global with extra machinery ("magic"). Every static method in Eloquent is a global function call with extra syntax.

I've only been using Laravel since late last year. I find it's DX to be appalling and contrary to the direction PHP has been improving for the last 20 years, a direction I've been helping to push.

You are welcome to disagree, but there's no need to make ad hominem attacks.

rdohms,
@rdohms@phpc.social avatar

@deleugpn @hughstimson @Crell it's only anti religious crap if Laravel is a religion... and if it is... Boy oh boy.

Y'all need a friggin chill pill...

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines