.
Notes on Choosing a PHP Framework: A Comparison of CakePHP and the Zend Framework
posted February 15th, 2008 at 4:05 pm by chad
UPDATE:Parlez vous Français? Guillaume Rossolini has created a French translation of this article.
Are you considering using a PHP framework for your next project? If so, this article's for you. I've narrowed down my choices to CakePHP and the Zend Framework and have documented my findings here.
Four or five years ago I began researching PHP application frameworks. At the time, the pickings were very slim, especially when compared to those available to Java developers. On the advice of an ex-Coldfusion developer, I settled on the PHP port of Fusebox, the de facto Coldfusion framework. Fusebox 3 provided a convenient set of loose conventions for structuring applications, organizing code, naming files, and controlling flow. It served my development team well and applications we built with it are still up and running.
I took a two-year "break" from development and upon my return I found more PHP frameworks than you can shake a stick at. Now I need to find a solid MVC-based framework and after reading dozens of articles and completing a few tutorials, I've narrowed my focus to CakePHP and the Zend Framework.
Before going further, let it be known that my point of view is that of someone with plenty of application development experience but without a formal IT or CS degree. I can't go on about the merits of one design pattern vs. another. I do, however, understand the need for convention, the advantages of modularity, and the efficiency of easily repeatable processes.
Please note that symfony, Prado, Code Ignitor, and many of the other PHP frameworks all look quite capable of meeting most project needs. If you're a fanboy of another framework, please don't espouse it's merits here. I am, however, interested in hearing about your general experience in learning a framework, particularly in the context of your professional background.
Here's a comparison and a few conclusions after spending a bit of time with both CakePHP and the Zend Framework. Please note that my quality scale range is: poor, fair, good, excellent.
I hope to use both of these frameworks soon, but in the short term I'll most likely base an upcoming CMS project on CakePHP. I do plan on using the Zend Framework, if for nothing other than expanding my application design skills, PHP 5 OO knowledge, and understanding of MVC.Conclusions and Recommendations
I hope to use both of these frameworks soon, but in the short term I'll most likely base an upcoming CMS project on CakePHP. I do plan on using the Zend Framework, if for nothing other than expanding my application design skills, PHP 5 OO knowledge, and understanding of MVC.
CakePHP: Hit the Ground Running Fast
If you are new to MVC, require PHP 4 support, want stricter conventions, or want powerful code generation tools, CakePHP is the choice for you. CakePHP's Scaffolding, Bake, and ACL scripts provide definite advantages when the need to quickly build an application arise.
The Zend Framework: A Model of Flexibility
If you know MVC, need more control over application design, or want built-in support for popular Web services, the Zend Framework is choice for you. The Zend Framework provides a greater degree of flexibility in designing applications that scale effectively in high-performance environments.
The bottom line is that both frameworks are rapidly evolving in response to user demands. Gaps in each are being filled and there seems to be no lack of demand for developers with skills in each framework.
Feel free to share your experience in learning any framework.
User login
Navigation
Recent comments
- 11 weeks 6 days ago
- 16 weeks 2 days ago
- 16 weeks 4 days ago
- 23 weeks 4 days ago
- 24 weeks 4 days ago
- 24 weeks 6 days ago
- 25 weeks 7 hours ago
- 25 weeks 7 hours ago
- 25 weeks 3 days ago
- 26 weeks 21 hours ago
Comments
Zend framework is unusable with mysql
Thanks
CakePHP Zend Framework Fusion
Congratulation
Good...but outtdated
Usefull
My experiences...
A blog post in a comment
In my experience I chose
Update needed
Thanks - Going with Cake
Thanks for this article.
I agree, that many framework
Thanks
Best comparison I read so far!
Great Comparison, Thank you.
Cake PHP is much better than
I've used Andromeda DB
Great Article!
ZF is licensed with "new" BSD
a great thanx
Flexibility
Another criterion: easiness to learn
No comparison.
Codeigniter seems friendly and concise to beginners
To be honest, I think the
I like CakePHP better than
About PHP Framework
good
Thanks for your great
Excellent comparison
Thanks, this was a great
fabulous article, did you know?
Most suitable
No comparison is going to answer this question
Cake has the edge on testing
Basic search
"Google results of cake are
Volumes of searches really
Thanks, this was a great
Searches narrow down the list to test
Something to be said for quality
Freedom of choose
I can choose!
I can choose!
Several things about Cake
Nice article!
Great comp!
Try Django !
Good Review