Live data from Hacker News

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

news.ycombinator.com

41–50 of 60 posts

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

#42
Use the framework that the team likes and wants to learn.

You're going to get the best value from a framework that is matched well to the team's current skills and ambitions. Consider:

* Team currently writes procedural code versus Framework requires understanding of Functional Programming or Object Oriented Programming

* Team writes quickly and loosely versus Framework requires developers to code methodically and carefully (perhaps because it has less "out of the box" features and more "flexibility". Security is a good example here.

* Team likes technical challenges versus Framework makes coding routine boilerplate and boring.

etc.

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

#43
> What framework will you choose if you could start over?

Anything that is not Python or Ruby or NodeJS based, i had so many problems and nigthmares with Django/Flask/RoR/bottle.py/web2py/Meteor/etc.

> He say PHP Framework...

Anything but CakePHP, Zend or Code Igniter maybe Laravel or Slim.

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

#44

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 would not recommend anyone to use PHP frameworks.

I haven't created anything in PHP for years. However, I used to create stuff with Yii and I was pretty happy with it.

My feeling was that if you use a proper framework and you're a decent programmer, PHP is actually not that bad.

Why do you advise against it?

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

#46

> What framework will you choose if you could start over? Anything that is not Python or Ruby or NodeJS based, i had so many problems and nigthmares with Django/Flask/RoR/bottle.py/web2py/Meteor/etc. > He say PHP Framework... Anything but CakePHP, Zend or Code Igniter maybe Laravel or Slim.

There is a lot of Node.js frameworks out there. Meteor is not really representative of them. Did you have issues with other Node.js frameworks too?

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

#49

As someone with positive experience in Ruby on Rails, I would choose (and have chosen) Laravel. Specifically version 5.1 which is the current LTS release. It does not have a CMS module nor an ecommerce add on as far as I'm aware, but depending on the complexity of your requirements they might not be difficult to do yourself (eg just a few pages of editable content with a few wysiwyg editors here and there, and a stra…

> It does not have a CMS module octobercms.com is based on Laravel

October is based on Laravel, but it is not a module that you can "plug in" to an existing Laravel site -- hence it does not meet the OP's requirements.

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

#50

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.

fyi Laravel does not use PHP code in templates. It has its own templating language called "Blade" (which I personally don't like, so I swap out Twig instead).
Post reply on HN