In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
Editor to share with you what views on the use of PHP development framework, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Since its birth, PHP has been loved by the majority of programming enthusiasts, has become a good helper for small and medium-sized webmasters, and trained a large number of PHP programmers, but with the more and more extensive application of PHP, it is no longer limited to engaged in the application of small and medium-sized websites, and some large-scale PHP projects are also common.
When we choose php to develop large-scale projects, we have to consider the problems of development efficiency, development specification, late maintenance and so on. At this time, we often choose a development framework that is recognized by people. The popular Zend Framework, Yii, Symfony, CodeIgniter, CakePHP and so on claim to have the ability to develop large-scale applications.
New frameworks emerge one after another, but when we really apply these frameworks to implement products, there are always different problems:
First, there is often a deep structural theory behind large frameworks, and nothing is more familiar than familiar theoretical terms such as MVC and ORM, as well as a lot of deep object-oriented knowledge, but few people really understand these, which makes the application threshold rise sharply. In addition to this large framework, the application details are even more complicated, and the learning cost is also relatively high, which is particularly embarrassing for PHP, which is only for small and medium-sized applications.
2. As a scripting language, PHP often runs based on host processes (such as apache, php-fpm). It goes through a series of processes on a single request, such as creating process, initializing environment, compiling script, running engine, output, resource recovery, process destruction and so on. At the programming language level, the comprehensive running efficiency is 2-3 orders of magnitude slower than that of compiled language, and it consumes a lot of system resources. On this basis, we also have to build and load complex development framework, which increases its operating cost. However, there is no lack of special requirements in large-scale applications, and sometimes the running efficiency of PHP plus large framework is fatal.
Third, large frameworks consider too many factors, and developers need to pay attention to too many details other than the code when applying, such as: non-standard conventions, lengthy manuals, trivial configuration, complex file directory structure, difficult to limit reasonable constraints, various class libraries, and so on, which make the development process of most programmers confused repeatedly, and improve development efficiency has become empty talk.
Fourth, the most deadly point, the framework author is constantly looking for silver bullets, trying to create a monster to meet all the needs. Large-scale applications have high requirements for loose coupling of the system, and it is usually impossible to operate the data directly at the development level. See a simple SOA model (figure). The data layer and the business layer are almost physically isolated, while the development of the business layer only accesses the service interfaces provided by the data layer. From the current PHP development framework (especially the MVC model), usually use ORM to directly abstract the database table, and directly CRUD operation, reliable large-scale applications will not do this (perhaps suitable for VPS, but large applications will choose VPS).
These are all the contents of this article entitled "what do you think of using the PHP development framework?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.