简体   繁体   English

比较php框架-通过其独特功能

[英]Comparing php framework - by their unique features

I saw many many compares with php frameworks, but they are just rather general - OOP supported, MVC supported... there are really unique features which distinguish them. 我看到许多与php框架的比较,但是它们相当笼统-支持OOP,支持MVC ...确实有独特的功能可以区分它们。 Symfony has flash variables, Zend has tons of classes for general purposes. Symfony具有flash变量, Zend具有大量的通用类。

Anybody knows such compairing stuff? 有人知道这种令人讨厌的东西吗?

Pick one you hear about, try it, and see what fits. 选择一个您听说过的,尝试一下,然后看是否合适。 Personally I've fallen for CodeIgniter, and just haven't looked into anything else as I haven't run into a limitation for my purposes. 就我个人而言,我迷上了CodeIgniter,只是没有研究其他任何东西,因为我没有遇到任何限制。

Its really about picking the best tool for the job. 它实际上是为工作选择最佳工具。

I'd say look into that table on Wikipedia that danp posted. 我想说一下danp在Wikipedia上发布的表格。 I'd suggest doing some cursory research just by visiting the Wikipedia entries for a few of the top frameworks and pick one. 我建议仅通过访问Wikipedia条目中的一些顶级框架并选择其中一个来进行一些粗略的研究。 The goal of a framework is to help the programmer to be more productive. 框架的目标是帮助程序员提高生产力。 If you have a good grasp of PHP and web programming in general, any of the frameworks will be a help. 如果您通常对PHP和Web编程有很好的了解,那么任何框架都将对您有所帮助。

If you are coming from a Rails background, I would suggest CakePHP or Lithium, since they share a tone of similarities with Rails. 如果您来自Rails背景,我建议您使用CakePHP或Lithium,因为它们与Rails具有相似之处。 Hope this helps! 希望这可以帮助!

The problem with comparing unique features is that the unique features are mostly stuff you don't care about, otherwise it would already be implemented in the framework. 比较独特功能的问题在于,独特功能通常是您不关心的东西,否则它将已经在框架中实现。 I'd recommend you to go to forums, both people criticising it and raise it to the skies, see what their cases are and why their framework is a fit for them. 我建议您去论坛,两个人都批评它,并把它抬高到空中,看​​看他们的案子是什么以及为什么他们的框架适合他们。

Don't just look for what a framework does, but what it does right . 不要只寻找框架的作用,而是要寻找正确的作用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM