Font Size: a A A

Research And Implementation Of General Development Framework Based On PHP

Posted on:2021-02-13Degree:MasterType:Thesis
Country:ChinaCandidate:W H ZhangFull Text:PDF
GTID:2518306539462894Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the development of Internet technology,the Internet has been integrated into almost all industries in society,and has gradually become an indispensable part of our lives,studies,and work.As the most popular Web program development language today,the PHP language has the advantages of low cost,fast speed,and good portability,and is widely used in Internet application development.With the emergence of Ruby On Rails,PHP has also emerged with excellent development frameworks such as Laravel,Symfony,and Yii,and has gradually transitioned from imitating to having its own unique style.However,the current mainstream PHP development framework still has the following problems:(1)Due to the characteristics of the PHP dynamic language,the use of the PHP development framework will cause a serious decline in system performance.(2)The complex structure of the PHP development framework will also increase learning costs,making it difficult for beginners to get started,and it is not conducive to the development of PHP.(3)When the amount of routing information is large,the routing matching performance decreases severely,and the routing performance of the development framework becomes a key factor affecting the overall performance of the system.(4)The PHP development framework is mainly based on the MVC model.Although compared to directly using the PHP language for development,it has the characteristics of high development efficiency and low maintenance cost,but when multiple development projects are compared horizontally,the code reuse rate will still be found,Maintenance costs and development efficiency have a lot of room for improvement.In order to solve the above problems,this article has done the following work:1.Researched the PHP source code and Zephir language,used the combination of Zephir language and C language to encapsulate the development framework as a PHP extension,and developed a high-performance PHP development framework.2.Research the mainstream PHP development framework and its design patterns,and design a PHP development framework based on middleware microkernel.3.The combination method and block size of the PHP routing combination regular expression scheme are studied,and the optimal combination method and dynamic block size are proposed,combined with routing classification,persistent array,LRU cache and other measures to achieve a high performance PHP routing middleware.4.Designed a simple access control configuration file format and flexible access permission checking process,combined with dynamic models,form builders,etc.,to achieve a zero-code access control middleware based on configuration files.5.On the basis of the MVC model,the functions of dynamic model and dynamic controller are added,and initialization through the principle of inertia and configuration files is supported to realize an efficient MVC mode middleware based on configuration files.6.Optimized and innovated the form builder,developed a configurable form builder,improved the code reuse rate at the view layer,and reduced maintenance costs.7.The "Training Report System" was developed using the development framework of this article to verify the feasibility of the development framework of this article.The effectiveness of the above work has been verified through experiments and comparative analysis.Compared with other PHP development frameworks,the development framework studied and implemented in this article is innovative in the following aspects:1.Performance is not affected by the amount of routing information.2.Access control can be realized through configuration file definition.3.The controller,model and form are implemented based on the configuration file definition.4.The code between different forms can be shared.
Keywords/Search Tags:PHP development framework, routing, RBAC, MVC, form builder
PDF Full Text Request
Related items