問題描述
我需要構建一個 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.
這篇關于易于使用/學習的 PHP 框架?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!