易于使用/学习的 PHP 框架?

2021-12-21 00:00:00 frameworks php symfony1 cakephp

我需要构建一个 php 应用程序,我正在考虑使用一个框架(以前从未使用过).我一直在浏览一些,但其中大部分看起来有点复杂,我真的很喜欢我看到的关于 Symfony 的东西,但看起来我必须花一个月的时间才能真正了解如何使用它,一个月后我可以在没有框架的情况下编写我心目中的应用程序 5 次.但我想用一个来标准化"我的代码并防止错误.

I need to build a php app, and I was thinking about using a framework (never used one before). I've been browsing around some but most of them seems kinda complicated, I really liked what I saw about Symfony, but it looks like I will have to spend like a month until I really understand how to use it, and in one month I could code the app I have in mind 5 times without a framework. But I want to use one to "standardize" my code and prevent bugs.

所以我想知道是否有人可以与我分享您认为哪些 php 框架更容易学习使用.

So I was wondering if someone could share with me which php frameworks you think are easier to learn how to use.

我的应用程序将使用 mysql,它将有某种搜索引擎"来搜索将使用一些抓取脚本"填充到数据库中的数据(我也想使用框架进行编码).

My application will use mysql, and it will have some sort of "search engine" to search data that will be populated on the database using a few "scraper scripts" (that I also wants to code using the framework).

推荐答案

在 StackOverflow 上有很多回答这个问题的问题,我最近刚在你的位置上研究了许多不同的框架,因为我也想标准化我的代码.

There are many questions answering this question here on StackOverflow and I was recently just in your position researching many different frameworks as I want to standardize my code as well.

我最终选择了 Codeigniter,因为我想要一些具有良好文档的东西,而且它非常轻量级(更轻量 == 更容易理解 IMO),并且不太严格.在 Codeigniter 中,如果您真的愿意,您可以只编写常规的 PHP 代码,它可以让您做到这一点.我喜欢这个选项,因为如果我真的被什么东西卡住了,我只是用我知道的方式用原始 PHP 编码.我只使用了几周的 Codeigniter,但学习曲线并不难,这是我使用的第一个框架.

I ended up choosing Codeigniter because I wanted something with good documentation, and that was very light (lighter == easier to understand IMO), and something that was not too strict. In Codeigniter if you really want to you can just code regular PHP and it lets you do that. I like this option because if I really get stuck on something, I just code it in raw PHP the way I know I can. I've only been using Codeigniter for a few weeks but the learning curve isn't too difficult and this is my first framework I've used.

相关文章