MVC Frameworks (PHP)


I’m on a learning quest again.  This time to get a solid PHP framework under my belt.  I am installing the framework and running the quick start tutorials for each of them, if I get that far.  This is what I have right now (keep in mind my investigation is in progress):

CakePHP

Pros:

  • Very easy to get a simple app running.
  • Scaffolding is great
  • Documentation is extremely thorough.

Cons:

  • Seems like database names have to follow some kind of convention. (i.e. Inventory would not work)
  • Getting REST JSON interface going seems like a lot of work.  I haven’t found a page that explains how to do it easily.

Zend (in progress)

Pros:

  • Insanely popular, the engine is already on 1&1 (I think)
  • Really good object-oriented approach, interesting idea with form & layout objects
  • zf code generator is a nice touch.
  • Looks like PHPStorm has the command-line stuff built in – also for Symfony

Cons:

  • Ridiculously hard to get running in a shared host. (Needs a vhost to work, apparently)
  • Lots of code.  Not a big deal, really, if you know what you’re doing.

CodeIgniter

Pros:

  • Scaffolding is neat, but REMOVED in 2.0
  • nice OO layout
  • Fairly compact
  • Looks like view names and table names are not hardcoded! Yay!

Cons:

  • PHPStorm doesn’t seem to like completing 3-level objects (lots of @property tags needed)
  • v2.0 scaffolding is gone
Right now, I’m liking CodeIgniter the best.  I am going to give Zend a lot more attention though, I think there will be a lot of advantages if I can figure it out.
, ,

Leave a Reply