Should i develop with CakePHP 2 or 3(我应该用 CakePHP 2 还是 3 开发)
问题描述
我刚刚开始使用 CakePHP 进行软件即服务项目.我可以看到版本 3 仍处于测试阶段,我可以看到这个项目需要 3-6 个月的时间.
我的问题是我应该从第 2 版还是第 3 版开始,而后者可能会达到稳定版本.
我不想学习第 2 版,然后第 3 版有一些变化.
更新: 如果您开始一个新项目,请立即使用 CakePHP 3.0.CakePHP 3 不再处于 RC 或 beta 状态,因此现在可以毫无疑问地使用它.
<小时>这个问题很可能会被关闭,因为它是自以为是,我自己还没有决定出于这个原因进行近距离投票,但是......
Cake3 实际上可以用于需要 3-6 个月的项目 - 这是我的意见.但在此之前,您将不得不期待一些 API 更改.我不会牺牲 Cake3 更现代的架构和语言特性,主要是使用不支持它们的旧版本的命名空间和闭包,因为 Cake3 还没有达到 3.0(没有 RC).
我在 1.3 处于 alpha 阶段时就开始使用 Cake,并且从 1.2 到 1.3 的过渡非常顺利.在 1.3 的持续开发过程中,我不得不适应 API 的变化,但这并不是一个游戏破坏者,我从来没有花太多时间在上面.
与 Cake3 相同的故事.我们正在使用 2.x 并使用 Cake3 启动了一个新项目,并且没有太多问题.到目前为止,它运行良好,偶尔采用 API 更改并没有像以前那样破坏游戏规则.
您可以看到 Cake3 现在大部分功能都已完成.
https://github.com/cakephp/cakephp/wiki/3.0-Roadmap>
如果你更进一步,你会注意到 3.1 会将最低 php 版本提高到 5.5.
https://github.com/cakephp/cakephp/wiki/3.1-Roadmap>
这是因为 5.4 即将结束支持.所以没有理由再支持它了.基于此,您可以猜测 3.0 何时发布:可能在 5.4 正式弃用之前.
Cake3 目前唯一的缺点可能是插件的可用性.但是已经有很多插件升级到3.0,甚至还有3.0的新插件.
I'm just starting on a software as a service project using CakePHP. I can see that version 3 is still in beta and I can see this project taking 3-6 months.
My question is should I start with version 2 or version 3 beta with the latter probably reaching a stable release.
I don't want to learn version 2 and then version 3 has a fair few changes.
Update: Go for CakePHP 3.0 now if you start a new project. CakePHP 3 is no longer in RC or beta state so it can be used without any doubts now.
The question is likely to get closed because it is opinionated, I'm undecided to put up a close vote for that reason myself, however...
Cake3 is in fact OK to be used for a project that is going to take 3-6 month - that is my opinion. But you'll have to expect a few API changes until then. I would not sacrifice the more modern architecture of Cake3 and language features, mostly the namespaces and closures for using an old version that doesn't support them just because Cake3 has not yet reached 3.0 (without the RC).
I've started using Cake myself when 1.3 was in alpha and the transition from 1.2 to 1.3 was pretty smooth. I've had to adept to the API changes during the ongoing development of 1.3 but this was not a game breaker and I never had to spend much time for it.
Same story with Cake3. We are using 2.x and started a new project using Cake3 and don't have much trouble with it. So far it just works fine and the occasional adoptions to the API changes are no game breaker as it was before.
You can see that Cake3 is mostly feature complete by now.
https://github.com/cakephp/cakephp/wiki/3.0-Roadmap
If you go further you'll notice that 3.1 is going to raise the minimum php version to 5.5.
https://github.com/cakephp/cakephp/wiki/3.1-Roadmap
This is because 5.4 is going to reach it's end of support. So there is no reason to support it any more. Based on this you can make your guess when 3.0 will be released: Likely before 5.4 is officially deprecated.
The one and only disadvantage of Cake3 right now might be the availability of plugins. But there are already lots of plugins that are upgraded to 3.0 and even new plugins for 3.0.
这篇关于我应该用 CakePHP 2 还是 3 开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:我应该用 CakePHP 2 还是 3 开发
基础教程推荐
- 在 Woocommerce 中根据运输方式和付款方式添加费用 2021-01-01
- 通过 PHP SoapClient 请求发送原始 XML 2021-01-01
- 如何在 PHP 中的请求之间持久化对象 2022-01-01
- XAMPP 服务器不加载 CSS 文件 2022-01-01
- 在多维数组中查找最大值 2021-01-01
- mysqli_insert_id 是否有可能在高流量应用程序中返回 2021-01-01
- Libpuzzle 索引数百万张图片? 2022-01-01
- 超薄框架REST服务两次获得输出 2022-01-01
- 在 PHP 中强制下载文件 - 在 Joomla 框架内 2022-01-01
- WooCommerce 中选定产品类别的自定义产品价格后缀 2021-01-01