Font Size: a A A

Research And Implementation Of PHP Fast Development Framework Based On MVC Pattern

Posted on:2011-12-04Degree:MasterType:Thesis
Country:ChinaCandidate:W CuiFull Text:PDF
GTID:2178360305974515Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
PHP is the most widely used Web developing language. However, the existing PHP developing model is lack of mature, a uniform specifications, and the quality of system depends on the level and experience of developers, which has become increasingly difficult to meet the requirements of rapid increase in the development of efficiency, reliability, maintainability and scalability. Aimed to the problem of complex framework, high learning costs and low efficienies and widely existing common demerits in PHP developing, and operating inefficiencies and other problems, a comprehensive use of lightweight rapid development framework for PHP design, a consistent lightweight framework for the design to improve the program was gave to the MVC design pattern and TableGateway data access layer, meanwhile, the paper gives details of its method of realization .The main contents and conclusions of this paper as follows:(1) PHP development framework at home and abroad were analyzed, pointing out that the current prevalence flaws of complex PHP framework, the low efficiency, the high cost of learning, put forward the goal of fast learning, rapid development and a framework to run fast of design.(2) Inspected the current mainstream of web development framework and the MVC design pattern, combined with PHP language and the analysis of PHP system status, a consistent lightweight framework for the design to improve the program was gave to the MVC design pattern and TableGateway data access layer. The project could build high efficient, flexible, easy to extended, and provide a basis support for web application frameworks.(3) Caching functions, caching of template compiling, static page caching were integrated to a system, the test result showed that it may significantly improve efficiency of system.(4) Designed and implemented all aspects of the framework, and made a partial adjustment to the implementation of MVC contraorbitally, in order to better development services for users.(5) Develop a same press release system by this frame, the native PHP, and FleaPHP, the result let the number documents, the line of codes and characters required in this frame are less than those in native PHP by 47.5%, 57.2% and 70.4%; less than those in FleaPHP by 4.5%, 4.1% and 13.8%, which could validate that might reduce the workload significantly.(6) Comparison tests showed that the speed of the database to write, update, delete in this framework was faster than those in FleaPHP by 20.5%, 19.9%, 27.4%, faster than those in ThinkPHP by 52.7%, 33.5%, 42.8%; the speed of dynamic page loading is faster than FleaPHP by 7% ; after starting up the function cache, the speed of dynamic page loading is faster than FleaPHP by 29.1% , faster than native PHP by 21.6%, which validate this framework has a good execution capacity.
Keywords/Search Tags:MVC Design Pattern, PHP, Development Framework, Database Access Layer
PDF Full Text Request
Related items