开发者

Newbie and PHP Frameworks

I am a newbie in PHP Frameworks and would like to share/discuss some experience with you guys. Getting straight to the point, what I understand till now (from a newby stand of point is this):

  • CodeIgniter + Doctrine + Twigg = Symfony:
  • Zend + Doctrine + Twigg = Symfony

    1. Symfony 2, uses php5.3 (I realy like namespace stuff remind me .Net) but it lucks of tutorials right now (only partial jobeet translation to ver2)
    2. I enjoy CI community and noumerous tutorials, plus using Doctrine + Twigg I could achive the same with Symfony.
    3. Zend is more enterprise with lots of tutorials, but more difficult to grasp than CI.

So the question is should I start with CI + Doctrine or learn directly Symfon开发者_Go百科y2? Am I correct with the above assumptions?


Start with CodeIgniter if you are new to frameworks. Both Symfony and ZF have a greater learning curve and if you're not familiar with some concepts you might get fustrated in the beginning with the more complex frameworks .


I would suggest you to go with Symfony 2 since it has got lots of good stuff built around it. Take a look at this article http://www.phparch.com/2010/02/symfony-2-benchmarks/.

Hope this link is very useful on learning Symfony 2. It's a tutorials based on days (21) teaching you how to create a calendar website. Good luck.

http://symfony.com/blog/do-you-know-jobeet

More:

  1. http://symfony2easy.blogspot.com/
  2. http://www.dobervich.com/2011/03/03/symfony2-blog-application-tutorial-part-i-project-setup/, http://www.dobervich.com/2011/03/05/symfony2-blog-application-tutorial-part-ii-the-data-model/, http://www.dobervich.com/2011/03/09/symfony2-blog-application-tutorial-part-iii-routing-controllers-and-templates/


it really adds up to what your requirements are.

Symfony is great, though my only bash on it is that it requires PHP 5.3, which is great, but make sure your host has 5.3 support. Also the issue of using CLI bugs me.

CodeIgniter 2 on the other hand requires 5.1.6, which is good for me as my host is still on 5.2; I also like how small CI was compared to Zend or Symfony. Now like you i like some of symfony's components and i use 2 of them (swift mailer & twig) on my CI install. doesnt mean you should just junk ci and go symfony. CI is built to be a stepping stone framework that you can build on. Symfony to me is a full-fledged framework with everything and the kitchen sink.

having said all that, not all frameworks are created equal. I use CI for one project and Kohana for another. Kohana offered me something i liked that CI didnt do and thats fine.

I think you should look at the different frameworks out there, some are full featured, some are bare-bones and allow you to grow with your needs.


You may quick start with Cygnite PHP Framework. Simple yet powerful tool to build your next project. It gives you exceptional performance. Check benchmark results:

Performance benchmark results

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜