View _php Tutorials for PHP's large development framework

Source: Internet
Author: User
Tags vps zend framework
Since the birth of PHP by the vast number of programming enthusiasts like to become a good helper of small and medium-sized webmaster, and training a large number of PHP programmers, but with the more extensive application of PHP, many times has not been limited to small and medium-sized web site applications, some large PHP projects are not uncommon.

When we choose PHP to develop large-scale projects, we have to consider the development efficiency, development specifications, post-maintenance and other issues, then we often choose a people recognized the development framework, the current popular Zend Framework, YII, Symfony, CodeIgniter, CakePHP and others claim to have the ability to develop large-scale applications.

New frameworks are emerging, but when we really apply these frameworks to product implementation, there are always different problems:

First, the large framework behind often have a deeper structure theory, the most familiar than MVC, ORM such a familiar theoretical terminology, there are many depth of object-oriented knowledge, but there are few people who really understand these, so that the application threshold sharply climbed; In addition to this large framework of application details are complex , the cost of learning is also relatively high, which is the original positioning of small and medium-sized applications of PHP becomes particularly embarrassing.

Second, PHP as a scripting language, its operation is often based on the host process (such as: Apache, PHP-FPM), on a single request through the creation process, initialization environment, compilation scripts, run engine, output, resource recovery, process destruction and a series of processes, At the programming language level, the efficiency of integrated operation is slower than the compiled language 2-3 orders of magnitude, along with the consumption of a large number of system resources, on this basis we also build and load complex development framework is to increase its operating costs. In large applications, there is no shortage of special requirements, and sometimes PHP's larger-scale framework is deadly.

Three, the large framework to consider too many factors, developers need to pay extra attention to the code in the application of excessive detail, such as: Non-standard conventions, lengthy manuals, trivial configuration, complex file directory structure, difficult to restrict the rationality of constraints, the different kinds of library and so on, so that most programmers development process is often bad confusion, Improving the efficiency of development has also become empty talk.

The most deadly point, the framework author is constantly looking for silver bullets, trying to make a monster that meets all needs. Large applications require a high level of loose coupling to the system, and it is often not possible to operate directly on the development plane, see a simple SOA model (the drawings), the data layer and the business layer are almost physically isolated, and the business layer is developed for only the service interfaces provided by the data tier. From the current PHP development framework (especially the MVC model), it is common to use ORM to abstract database tables directly and to CRUD operations directly, and the large-scale applications will not do this (perhaps for VPS, but large applications will choose VPS??). )。

Summing up, PHP large framework really is still in a very awkward position, but on the other hand, good PHP large framework is really a worthy example of learning, which contains a lot of design concepts, design patterns, code optimization, language characteristics, software engineering and other knowledge systems, It's the essence of PHP, but it's far beyond PHP itself.

Finally, I would like to say a popular word about these large PHP frameworks, "The learners are born, the people who use them die".

Excerpt from: Red Eye Technology Blog

http://www.bkjia.com/PHPjc/478590.html www.bkjia.com true http://www.bkjia.com/PHPjc/478590.html techarticle since the birth of PHP by the vast number of programming enthusiasts love, become a good helper of small and medium-sized webmaster, and training a large number of PHP programmers, but with the more extensive application of PHP, many times ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.