Live data from Hacker News

Ask HN: What PHP framework would you choose if you could start over?

news.ycombinator.com

31–40 of 60 posts

Re: Ask HN: What PHP framework would you choose if you could start over?

#32

Yii2[0] is simple, elegant and powerful. Unfortunately it does not adhere to: > - no php code in templates But it does abstract the template/view nicely. On a personal note and this will most probably get me down votes. I would not recommend anyone to use PHP frameworks. But I understand real-life factors like current skill set, dev availability, etc. [0]: https://github.com/yiisoft/yii2

I agree, and I've used Laravel too. Yii is built and designed by someone who has written frameworks before and understands how to do it right. The creator wrote the Prado framework, then wrote Yii from the ground up.

Laravel definitely has all the hype, but Yii has been around much longer and is better architected imho. It does have a slightly steeper learning curve and isn't as instantaneously easy to use at first, but it's worth the effort.

Re: Ask HN: What PHP framework would you choose if you could start over?

#33
Definitely Laravel. My company switched over at the end of last year and it's been great. I think it meets all your requirements except for `no php code in templates`, though I think you'll always have to have some minimum template code for looping/displaying data in any framework.

Re: Ask HN: What PHP framework would you choose if you could start over?

#37
post #26

I realize that this is not in line with the PHP requirement, but hear me out: I would use Ruby on Rails. I have transitioned from using Drupal to Symfony2 (sometimes with Sonata) to using Ruby on Rails, and let me tell you, everything is indeed greener on this side. The tools are better, the language is easy to learn and it is mostly sane. The framework is amazeballs, I am not even kidding. Writing tests is actually…

I have to agree. Having gone from using Ruby/Rails to the PHP side and its whole ecosystem, if you want an MVC framework I would say just use Rails or Django. Laravel is somewhat painful by comparison.

Wordpress is quite fine for most things though.

Re: Ask HN: What PHP framework would you choose if you could start over?

#39
post #20

Code Igniter and Drupal are my choices.

Worked on Drupal for half year and I swear that I will never touch this piece of shit. CodeIgniter is only good for very simple website. It miss a lot of functions that a sophisticated framework has (eg Laravel)

Drupal, in whichever flavors people are still using (5, 6, 7 or 8) is quite bad. Avoid, Avoid, Avoid.

Re: Ask HN: What PHP framework would you choose if you could start over?

#40
post #3
post #2

Laravel It's got the most active PHP community, and sufficient online support from documentation and community. You could also start with Spark and let them handle the boilerplate. https://spark.laravel.com/

Does it match _all_ the criteria above?

Wow.... What a sense of entitlement. You ask HN a question and then jump down a commenters throat for potentially not meeting ALL of your requirements (Some of which are not clear at all or, at least with the information you provided, don't make sense at all: templates without code in them aren't templates, they are static HTML pages...).

Laravel is a great suggestion and has been made multiple times in this thread, it may not meet every last bit of your criteria but to disqualify it for that reason would be ridiculous. There is literally NO framework or CMS that exists that is going to meet _all_ your requirements.

Post reply on HN