我是一名优秀的 PHP 开发人员,想用 PHP 开发一个大型 Web 应用程序。我正在考虑使用 CakePHP 框架。
CakePHP 适合大型 Web 应用程序吗?
我应该开始学习和使用它吗?
CakePHP 值得投入时间和金钱吗?还是应该选择核心 PHP 或其他框架?
我听说,如果您遇到某些问题,很难找到支持。
这是正确的吗?
我也听说过很多关于它的好消息。
我期待您的指导。
I am a good PHP developer and wanted to develop a large scale web application in PHP. I was thinking about using the CakePHP framework.
Is CakePHP good for large scale web applications?
Should I start learning and using it?
Is CakePHP worth investing time and money or should I go with core PHP or some other framework?
I heard that it is difficult finding support for it in case you are stuck with some issue.
Is this correct?
I have heard a lot of good things about it as well.
I am looking forward to your guidance.
发布评论
评论(6)
在支持方面,我相信CakePHP是相当不错的。他们拥有活跃的 IRC 社区,以及他们自己的 stackoverflow 风格网站。此外,SO 上似乎有不少熟练的 CakePHP 用户。
尽管 CakePHP 网站上缺少一些有关数据源、创建行为和其他一些零散内容的文档。
这一切都取决于您的应用程序是什么,正确的工具适合正确的工作。
In terms of support, I believe CakePHP is quite good. They have an active IRC community, as well as their own stackoverflow style website. Additionally there seems to be quite a few proficient CakePHP users on SO.
Although some of the documentation on datasources, creating behaviors and other few bits and pieces is lacking on the CakePHP website.
It all depends on what you're application is also, right tool for the right job.
还有 CodeIgniter 它具有许多相同类型的功能,我建议您检查一下拿出来进行比较。
您可以使用这两个框架创建一些高度专业且可扩展的网站。您绝对正朝着正确的方向前进,而不是编写普通的 PHP。
通过这些框架,您可以受益于使用经过充分验证的设计模式,例如:模型视图控制器模式,并且还可以利用许多帮助程序类来进行数据库访问、表单验证和安全性。
我个人使用名为 SilverStripe 的东西,它是一个 PHP 开发框架,附带一个开箱即用的可选 CMS,因此您可以可以立即创建基本页面,它也足够强大,您可以相对轻松地创建复杂的自定义 Web 应用程序。
我没有听说过 CakePHP 的支持很差,但这只是我的情况。
无论您最终选择什么框架,都肯定会涉及一些学习曲线。根据我的经验,当我开始使用一个框架时,我开始咒骂我想做的事情缺乏灵活性,但是当你开始学习正确的做事方法并利用它时,这很快就带来了生产力的巨大提高。为您完成大量繁重工作的类(表单脚手架、ORM、表单验证、数据库访问、安全性等)。
祝你好运。
There is also CodeIgniter which has many of the same sort of features, I suggest you check it out for comparison.
You can create some highly professional and scalable websites using these two frameworks. You are definitely headed in the right direction instead of writing vanilla PHP.
With these frameworks you benefit from using well proven design patterns e.g: the Model View Controller pattern and also utilize many helper classes for database access, form validation and security.
I personally use something called SilverStripe which is a PHP development framework that comes with an optional CMS out of the box so you can get creating basic pages straight away, it is also powerful enough that you can create complex customized web applications relatively easily.
I haven't heard CakePHP having poor support, but that's just me.
Whatever framework you end up choosing will definitely involve a slight learning curve. In my experience, when I started using a framework I started off cursing at the lack of flexibility in what I wanted to do, but this soon made way to the vast productivity improvements when you start learning the correct ways to do things and making use of the classes that do a lot of the heavy lifting for you (form-scaffolding, ORM, form validation, database access, security, etc.).
Good luck.
到目前为止,CakePHP 看起来是最简单的。一旦你弄清楚如何使用 Bake 命令,一切就变得轻而易举了。我尝试了 Yii,Zend 最终选择了 cakePHP。对于 Yii 来说,生活似乎很艰难。 Zend 太大了,难以处理。
CakePHP is so far easiest it seems. Once you figure out how to work with Bake commands it becomes a cake walk. I tried Yii, Zend finally settling with cakePHP. With Yii life seemed so hard. Zend was too big to handle.
嗯嗯。对于大型网站,我认为您正在寻找最佳选择。
当您的网站需要大量自定义时,CakePHP 会很有帮助。另一方面,诸如 Joomla 或 WordPress 很好,但对于您提到的大型网站来说并不可取。
我知道我们大多数人在第一个 CakePHP 网站上都遇到过或将面临困难,因为当我们陷入某些情况时很难找到解决方案,但您不必担心,因为我们在 Stack Overflow 中为您提供帮助。
Hmmmm. For a large scale website you are looking for the best option in my opinion.
CakePHP is helpful when your website require lots of customization. On the other hand options like Joomla or WordPress are good but not preferable for large scale website like you mentioned.
I know most of us had or will face difficulty for very first CakePHP website since it's difficult to find a solution when we are stuck in some cases, but you don't have to worry since we are here in Stack Overflow to help you out.
是的,CakePHP 即使对于大型应用程序也能很好地工作。我使用 OpenSocial 和 CakePHP 在 LinkedIn.com 上部署了一个合作伙伴应用程序,每天都会看到超过 1000 个新用户。现在已经过去2年多了,该应用程序正在稳步增长,并且应用程序的性能仍然非常好。 (我们使用 2 个 Apache Web 服务器和 memcached 进行备份)
Yes, CakePHP works well even for large applications. I deployed a partner application on LinkedIn.com using OpenSocial and CakePHP and we were seeing more than 1000 new users everyday. It has been more than 2 years now and the app is seeing steady growth and the app's performance is still very good. (We back it up with 2 Apache web servers and memcached)
Yii PHP 框架怎么样?它应该是快速且可靠的。
What about the Yii PHP framework? It's supposed to be fast and reliable.