In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces the relevant knowledge of "summing up the comparison of ten PHP development frameworks". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
The PHP development framework has recently become a hot topic in the PHP community, with new frameworks being launched almost every day. Faced with more than 40 development frameworks on the market, it's hard to tell which one is best for you, especially when the features they provide are different.
Overview
What you can see below is a list of these ten development frameworks, listing the features they provide.
# 1: indicates whether the framework has built-in model-view-controller.
# 2: indicates whether the framework can support multiple databases without modification.
# 3: indicates whether the framework supports the object record mapper, which is usually an ActiveRecord wrapper.
# 4: indicates whether the framework contains other database objects, such as TableGateWay.
# 5: indicates whether the framework has a built-in template engine.
# 6: indicates whether the framework caches objects or other caching mechanisms.
# 7: indicates whether the framework has built-in verification or filtering components.
# 8: indicates whether the framework has built-in Ajax support.
# 9: indicates whether the framework has a built-in user authentication module.
# 10: indicates whether the framework contains other modules, such as RSS feed parsers, PDF modules, or other utility modules.
Zend Framework
Although Zend Framework doesn't take advantage of it in terms of comparison, Zend Framework does include modules for processing PDF documents, RSS sources, online services (Amazon, Flickr, Yahoo), and more. Zend Framework also contains several different database objects, which greatly facilitates the implementation of querying the database, and even eliminates the trouble of handwritten SQL query scripts.
Currently, Zend Framework does not fully support ORM, but developers are still locked in a debate over whether to add an ORM layer. Maybe these features will be implemented in the future, so you can write your own ORM package, contribute to the community, and have the opportunity to integrate it into future versions of the framework.
Zend Framework looks promising, and it fixes some common PHP problems at the same time. Maybe the stable version can perform better in the comparison table!
CakePHP
CakePHP is an advanced MVC framework with a few modules. It can handle most database transactions and supports Ajax data validation. At the same time, its user authentication module (Accsee List) is also very unique, which can assign corresponding access rights to different users when they visit different parts of the site.
Although CakePHP's website looks confusing, the framework itself is relatively complete and available. As of the end of the article, there is no stable version, it is a bit surprising, after all, it has been developed for several months, but I guess it is not wrong to use the beta version to develop products.
Symfony Project
From the comparison table, it is not difficult to see that Symfony is a very scalable development framework, it is even fully embedded in an ORM,Propel called Propel is also an open source project, and so far may be the best ORM solution on PHP. Symfony also integrates Creole for the database abstraction layer and Mojavi for the MVC model layer. Because it only reuses the source code of these projects, rather than rewriting it, it makes the framework extremely extensible, which is evident in the table.
Symfony has two drawbacks so that it does not support PHP4, as a result of the need for support for many new features in PHP5, and because it is relatively complex. Most tasks, such as paging, have a much more complex time frame in Symfony than other frameworks, which is by no means a notoriously concise framework.
Seagull Framework
Seagull framework looks pretty good and comes with a lot of features. Supporting PHP4 is also good for its promotion. I am still using PHP4 myself, and most space registrants do not fully support PHP5.
Unfortunately, it doesn't make sense that Seagull doesn't provide support for Ajax, but Google makes it easy to search for a tutorial to add your own Ajax support, and this should be added to the framework in the future.
WACT-Web Application Toolkit
WACT has a lot of potential, and it has all the basics of the framework, such as MVC, database objects, and template engines, but that's it. It does not have any plug-in modules, but also lacks some built-in features, such as Ajax, caching, authentication modules, and so on.
Still, WACT has the best template engine and can even help you create your own template tags to extend functionality.
Prado
Prado is very unique and provides some cool features. It doesn't have built-in support for MVC (in my opinion), but it does have a variety of components that handle most PHP tasks, and even better, it implements event-driven scripting. For example, set the onClick event on a HTML button to link to a PHP function. This is similar to ASP.NET, and Prado does contain more ASP.NET components, such as GridView and Repeater Control.
Based on the data on the comparison table alone, Prado looks weaker than other frameworks, but this is not the case. Because Prado is so unique, although it does not score well, it is very powerful in practical applications.
PHP on Trax
This framework looks like an interface for Ruby and Rails on PHP, and it used to be called PHP on Rails. Unfortunately, its documentation is so scarce that it's hard to tell what the framework provides, but the document does mention ActiveRecord, so it may provide ActiveRecord, just like RoR. And it has built-in Ajax support, which can be seen in two demo videos on its website.
PHP on Trax basically meets the requirements of users for the framework, but it still lacks arms and legs, such as authentication modules and cache modules. It also doesn't have any plug-in modules, so for now, it's very rudimentary.
ZooP Framework
ZooP Framework can be said to be all-inclusive, and it is clear at a glance on the comparison table that almost everything is supported, except for the ORM layer. What's even more surprising is that it supports PHP4, which is not easy for the comprehensive features it provides, which is great!
ZooP also provides built-in GUI control, which makes the work of creating forms extremely fast. It supports the vast majority of commonly used form elements, and the advantage of using GUI control in regular HTML is that you can closely combine the logic of validation with GUI control.
EZ Components
Ez Components is not so much a framework as a set of components, which may be why it does not have built-in support for MVC.
It includes most common components, such as database components and cache components, but there is still something missing. For example, there are no ActiveRecord components and validation components. On the other hand, it provides some plug-in components, such as e-mail components, but not many, and other frameworks (such as Zend Framework) provide more.
CodeIgniter
CodeIgniter is a relatively new framework, written by the ExpressionEngine development team, which looks promising. Unfortunately, it cannot handle multiple databases, although this feature is still under development.
It comes from Ruby on Rails, so it provides a lot of the same functionality, such as scaffolding (automatic code generation). Its documentation is excellent, and there are even video tutorials to help you get started quickly.
The winner is.
Here I have to announce with great regret that no one has won. Each framework provides different features, so no one wins. As always, in the end, it will depend on personal preferences and choices. I highly recommend that you carefully study the documentation of each framework before making a decision, and it is up to you to judge the rest.
Personally, I do like Zend Framework very much, but when I studied each framework carefully, I found a lot of interesting features, such as Prado events, or Symfony's ORM wrapper.
When you really can't decide which framework to choose, you can still choose to do it yourself, as most people do. It takes time and effort, but it's a lot of fun.
As I said at the beginning, some of the framework has been greatly updated, and I am more inclined to symfony recently, its rich documentation makes it very convenient to get started, but its complexity also makes the process of developing small projects, even personal mini projects like mine, a little too costly, maybe the simplicity of CodeIgniter is enough in this respect.
This is the end of the content of "summarizing the comparison of ten PHP development frameworks". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.