views:

103

answers:

6

I am looking for a lightweight php framework with the following qualifications: ability to write my own sql queries ( i simply don't trust CakePHP like method where the framework does your sql for you); ability to integrate Jquery easily; built-in templating, or relatively easy to introduce Smarty (or another templating engine) into it; MVC; fast

Any advice/comparison? i have looked into CodeIgniter, Symfony and CakePHP so far. Symfony is slow, and CakePHP is too inaccessible ...so far my choice would be CodeIgniter. I played with it a bit, but i would like to hear more experiences.

I am looking for a framework that will "enforce" organization of my app in a logical way - MVC seems like a great choice.

A: 

Have you also tried Zend Framework? Not really lightweight, but as you already tried Symfony...

Macmade
A: 

CI is pretty hot right now.

You may want to refer to this:

http://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks

It has a feature comparison of PHP frameworks.

Kevin
+1  A: 

"Symfony is slow"?

[citation needed]

That is a complete lie and if you bothered to do a Google search for Symfony performance, you would know you are wrong. See this.

And "CakePHP is inaccessible"?! It is I think the only framework still supporting PHP4, making it the MOST accessible.

Coronatus
Over the last 2-3 years I read several articles online saying that Symfony is slow according to benchmarks. Not sure if this has changes or not, or how much validity it has had.By inaccessible I meant, it does sql under the hood. Again, cake is easy to learn, but I am not sure what's the best framework that balances out qualities I have listed, that's why i am asking this question, I am open to suggestions.
gnomixa
if you're still developing for php4 you really need to stop. php4 is no longer in active development; meaning no new bug fixes or security releases at the very least...
kguest
using php5, not sure why you thought i was using php4.
gnomixa
I have never used CakePHP or PHP4 (I started developing with PHP5!) so please don't assume I'm old fashioned :). But the truth is a framework supporting PHP4 **is** the most accessible.
Coronatus
+1  A: 

symfony2 is supposed to be quicker again. also have a look at the solar framework: http://solarphp.com/ - it seems a bit more coherent.

kguest
+1  A: 

If you don't trust CakePHP to write your SQL, why would you trust any framework to do anything? I suggest you write your own.

mgroves
writing optimized SQL is an art form. I will trust the framework to enforce me into a certain file structure (like CI) but writing SQL is quite another matter.
gnomixa
You can pass plain SQL through the CakePHP framework if you really need to, but I would wager that 90+% of the time, your SQL won't be significantly better than the CakePHP SQL.
mgroves
+1  A: 

There is no best one, choose wisely based on requirements and complexity of your projects. You would ultimately go with one where there is less coupling involved.