views:

2062

answers:

8

I'm starting a new project and I'm looking for a nice, light MVC framewok for PHP. I'll use PDO for database abstraction and jQuery as UI framework.

+1  A: 

I really like CakePHP. Similar to Rails and pretty lightweight

Christopher Lang
Mm.. I've done many projects in CakePHP and while it is awesome, I wouldn't say it is "lightweight" - I actually stay away from it for smaller projects because it is pretty bloated.
Paolo Bergantino
Agreed, it is pretty heavyweight. It pretty much forces an ActiveRecord-like ORM and php templates on you. A lot going for it though; It's a good product.
Cheekysoft
yes, Cake it's very restrictive, I'm looking for something more flexible. I'll take a look to Zend, Symfony and CodeIgniter. Thanks
Flupkear
+3  A: 

I really like codeigniter, but it is a web application frmework (MVC-based) It is very good documented, and easy to grasp.

Peter Parker
+4  A: 

I don't know about light; but this is an excellent framework:

http://framework.zend.com/

And considering its made by Zend; you cant go wrong :)

But on lighter projects where the Zend framework does not apply, I always write my own.

Here is a good book that goes over how to use the zend framework in a practical way:

http://www.amazon.com/Practical-Web-2-0-Applications-PHP/dp/1590599063

nlaq
+2  A: 

I am trying to learn Symfony from Symfony-project.org and I have little success yet. Tutorial for 1.1 release have some problem and the 31 days project is for 1.0! :( Still seem to be a good framework...

Daok
+1  A: 
  • Ambivalence: A Java-Maverick Port
  • WACT: Web Application Component Toolkit
  • Achievo: A good RAD framework
  • Phrame: A Java-Struts port
  • Studs: A Java-Struts port to PHP
  • Prado: The winner of Zend coding contest
  • PHPOnTrax: a Rails port - PHP5 Only
  • CakePHP: Inspired by Rails PHP4/5
  • Mojavi
  • Symfony: Based on Mojavi and inspired by Rails
Guido
+9  A: 
Daok
The chart is a bit misleading. The Zend framework can be easily (and I mean very very easily) be setup to use the Smarty templating engine. The book I posted below shows how.
nlaq
The point is about MVC... Symfony does template too... It's not my website and it's not up-to-date but still have MVC relevant stuff
Daok
I would like to have templates, I didn't included that in the question because I want to use a very simple template engine like phptemplate. I don't like Smarty or any of the other tag-replacing engines. It's counterproductive in the long run.Have you tried Code Igniter? it's better than Zend?
Flupkear
Smarty is not tag replacing - it has its own syntax. I suggest you take a look at it; as it is very simple, lightweight and extensible. But the Zend framework can be extended to use any templating engine anyway :)
nlaq
I did some things in Smarty a couple of years ago, it's nice but personally I believe it's not necessary to use it's owns tags.I'll give Zend a try, and I'll take a look to Symfony and CodeIgniter thanks.
Flupkear
A: 

I'm fond of Zend, for the little I've used it, because it's an opt-in framework. You want to use your own object DB model? Go for it. Want to use Zend's? Just include it. Zend has lots of bits that you can include if you want - and if you don't, you leave it out and it doesn't require a lot of work to patch your own preferred code into the mix.

John Fiala
Glue framework. :)
Till
A: 

I'm a user and huge proponent of the Fuse PHP MVC Framework. It's easier than most, but also just as powerful if not more powerful than counterparts like CakePHP.