Live data from Hacker News

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

news.ycombinator.com

51–60 of 60 posts

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

#51
post #3

Earlier quoted context omitted.

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,…

My comment was not meant to "jump down" on anyone. Sorry for the misunderstanding. It was a simple question (also because the Laravel answer did not go into that much detail).

The reason why I added "templates without code" is because I have seen too much abuse of php code in templates to even consider doing that again.

While you are probably right that there might not be (but who knows for sure...) one framework that meets all the criteria, it is still worthwhile to ask the community for suggestions.

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

#52
post #31

I wouldn't use laravel because it seems that the guy who made it hasn't yet earned my respect as the dictator of the project. It seems backwards compatibility is a real issue for his framework. He's no torvalds. I can't trust him to not break things.

What functionality got broken?

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

#53
post #8

* - developed by community, not a company * This rules out Symfony and Laravel which are imho the only sane options in php. Why do you need this requirement ?

This ensures that the development of the framework is not guided by commercial interests.

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

#54

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).

It's good to know that the templating engine can be exchanged.

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

#55
post #34

So you're looking for a CMS - Wordpress and friends - clone, and not a framework?

Right. This shouldn't be understated. If a CMS is a must, why isn't Wordpress being considered?

We had some experience with Wordpress and from the list of features, it fits the bill almost. Almost because we found the templates were very messy.

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

#56

If you have a chance to rewrite everything it's time to high tail it out of the PHP ecosystem my friend.

Most people in my company have mostly been working with PHP and thus it would be too much of a break with the past to switch languages.

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

#58

I'd argue Laravel and Symfony's development are tightly coupled to a single person / company (Taylor Otwell / SensioLabs). If CMS & ecommerce are a big portion of this project I'd easily pick WordPress. The only requirement it fails to meet is "no php code in templates". WordPress meets all the other criteria and it is generally great for spinning up a MVP.

Wordpress is good if you need posts/blog-like site, but if you're going to scale up to something really huge like Groupon did, you'd be better off with a custom framework w/ full control, better caching, etc. -- Wordpress is a hog on resources, and very easily hacked as well. My laravel sites all perform light years better/faster.

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

#59

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).

You can use straight PHP in blade templates if you want. Even with blade tags, for the most part it's still just PHP.
Post reply on HN