General Question

ajmaliqbal's avatar

What are the major features of Symfony vs. Cake?

Asked by ajmaliqbal (5points) January 18th, 2008

Please let me know why Symfony is better than Cake and is there any framework that is better than these?

Observing members: 0 Composing members: 0

3 Answers

jrpowell's avatar

I think I have tried all the PHP MVC frameworks. Cake is the easiest to get up and running. I can move it around hosting companies and it works. (after modifying the DB settings)

But, I would ask yourself.. Do you really need to use a framework? I love Ruby and gave RoR a try. Total pain in the ass. Then I tried all the PHP frameworks thinking that they would be easier and faster then RoR. They were, but still a pain in the ass.

Now I have gone back to doing everything in PHP by hand.

Django is fast (python) but I have had zero luck installing it on OS X..

ben's avatar

@johnpowell: We use Django on OS X with relative ease. Let me know if you’re having specific problems and want to give it another go.

segdeha's avatar

Frameworks are extremely helpful for organising large projects and/or projects with “many hands in the pot.” Most developers who work on sufficiently large projects end up writing some or all of the components present in the major frameworks at some point (e.g., an object-relational mapping component so you can interact with your database data as objects).

That said, it can be a major pain to install a framework in a shared hosting environment. Rails is notorious for not playing well in these environments and the creator of Rails has even come out and said it’s not a high priority to fix the problem.

Anyway, to more directly answer your question, Symfony is a Rails clone (at least as far as PHP allows it to be [PHP can’t do everything that Ruby can, so the frameworks are not 100% the same]). It has lots of nice features that make development faster and easier once you grok the “Symfony Way.” I haven’t used Cake for any serious work, but in my playing around with it, it seems to have most if not all of the features that Symfony does.

My experience is similar to johnpowell; Cake is really easy to set up in a shared hosting environment. So, if that’s a requirement for your project, take that into account.

Now, are you required to use PHP? Django and Pylons are 2 kick arse frameworks that run on Python. And, perhaps you could work in Rails, rather than “settling” for a clone. In my experience, Python and Ruby are both more enjoyable languages to work in than PHP. Of course, PHP has the advantage of ubiquity.

FWIW, Python versus Ruby versus PHP has been hashed out before.

Answer this question




to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
Knowledge Networking @ Fluther