对于初学者来说,Laravel 和 Yii 框架哪个更容易理解?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25992706/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 10:08:57  来源:igfitidea点击:

Which is more easier to understand Laravel or Yii framework for beginners?

phpcodeigniterlaravelyiiframeworks

提问by Jerielle

I just want to ask your opinion about this. I am planning to switch my framework CodeIgniter into Laravel or Yii. I tried installing them and study a little and there are all great framework. I have a project for 1 month and I want to use a new frameworK for this project. This project is just a simple Blogging site. I also have a knowledge in Opencart an Ecommerce framework. And iT is much the same as CodeIgniter. That's why I learned it so fast. Now my problem is if I used these framework which is Laravel or Yii can I learn it easily? Or I have to spent a month for learning this? What I want to do is learning these framework while doing. But I am afraid that I can make it to the deadline.

我只是想问问你对这件事的看法。我打算将我的框架 CodeIgniter 切换到 Laravel 或 Yii。我尝试安装它们并进行了一些研究,所有框架都很棒。我有一个为期 1 个月的项目,我想为这个项目使用一个新框架。这个项目只是一个简单的博客网站。我还了解 Opencart 电子商务框架。iT 与 CodeIgniter 非常相似。这就是为什么我学得这么快。现在我的问题是,如果我使用 Laravel 或 Yii 的这些框架,我可以轻松学习吗?或者我必须花一个月的时间来学习这个?我想做的是边做边学这些框架。但恐怕我能赶上最后期限。

Can you help m what framework should I need to use?

你能帮助我需要使用什么框架吗?

I have a knowledge in HMVC-L but not so professional and simple Ajax process.

我有 HMVC-L 方面的知识,但不是那么专业和简单的 Ajax 流程。

回答by DJ'

This seems to be a very wide question.

这似乎是一个非常广泛的问题。

If you are using CodeIgniter, what are the problems that you are facing that you need to shift to another framework? In my opinion, stick with CodeIgniter, and try to build your blog application with Code Igniter, you dont need to shift your framework. Also the documentation is good.

如果您正在使用 CodeIgniter,您面临哪些需要转移到另一个框架的问题?在我看来,坚持使用 CodeIgniter,并尝试使用 Code Igniter 构建您的博客应用程序,您不需要改变您的框架。文档也很好。

Even then if you would like to switch, make sure to check followings about that framework:

即使这样,如果您想切换,请务必检查有关该框架的以下内容:

  • How often they release their updates? More frequency, the better.
  • How active is their community?
  • How is their documentation?
  • 他们多久发布一次更新?频率越高越好。
  • 他们的社区有多活跃?
  • 他们的文档如何?

For Code Igniter, all the above mentioned 3 are GREAT for beginners!

对于 Code Igniter,上述所有 3 种都非常适合初学者!

Update[22/06/2015]:Codeigniter 3 is now under active development, has a new home, and even has a dedicated website: codeigniter.com– dotslash

更新 [22/06/2015]:Codeigniter 3 现在正在积极开发中,有一个新家,甚至还有一个专门的网站:codeigniter.com– dotslash

回答by aFreshMelon

Most modern PHP developers use Laravel. And you should use Laravel too.

大多数现代 PHP 开发人员使用 Laravel。你也应该使用 Laravel。

Laravel ensures best practices, has great wrappers and teaches you a lot about PHP. It's well documented and insanely well written to make it easy to adapt to.

Laravel 确保最佳实践,拥有出色的包装器并教你很多关于 PHP 的知识。它有据可查,而且写得非常好,很容易适应。

You should most certainly NOT USE CODEIGNITER - it's a very wide opinion that CodeIgniter is not up to par with modern frameworks like Laravel or CakePHP anymore.

您绝对不应该使用 CODEIGNITER - CodeIgniter 不再与 Laravel 或 CakePHP 等现代框架相提并论,这是一个非常广泛的观点。

Laravel dictates all sorts of best practices, standards and procedures you need to be a good efficient developer and has a massive array of packages for deployment.

Laravel 规定了成为优秀高效开发人员所需的各种最佳实践、标准和程序,并拥有大量用于部署的包。

回答by William Francis Gomes

I think that structure is more or less same (MVC) which is similar to Codeigniter. So if you know how MVC works then this two frameworks wont be that much hard to learn. And about time to learn, well it depends on the capability of a person. But if you want to switch to a stable something, then i will suggest you to test run with Zend Framework (Not suggesting to build your current work with this) when you feel like it. Coz its more stable and reliable. :)

我认为该结构或多或少相同(MVC),类似于 Codeigniter。所以如果你知道 MVC 是如何工作的,那么这两个框架就不会那么难学了。至于学习的时间,那要看个人的能力了。但是如果你想切换到一个稳定的东西,那么我会建议你在你喜欢的时候用 Zend Framework 测试运行(不建议用它来构建你当前的工作)。因为它更稳定可靠。:)