Font Size: a A A

Design And Implementation Of ThinkPHP Framework Code Generator

Posted on:2020-10-02Degree:MasterType:Thesis
Country:ChinaCandidate:X X HuangFull Text:PDF
GTID:2428330626956938Subject:Software engineering
Abstract/Summary:PDF Full Text Request
ThinkPHP is a frame of simplified web application development based on the PHP language.The ThinkPHP frame includes common components such as form processing,template engine,role authentication,CACHE,underlying architecture,database access layer,and plug-in mechanism.It can run on multiple platforms such as windows and linux.It supports common servers such as apache and nginx.It can be connected to database,like mysql,oracle and mongo.ThinkPHP is widely available in online education,corporate Portal Web,e-commerce,medical systems,social networking services,etc.ThinkPHP has growing application in numerous fields.However,survey and research found that there are a great deal of repetitive and trivial tasks in software development for software engineers.Although the tasks are similar,each time,the database table is different,the data verification is different,and the web interface is also different.The software engineers have no choice but to repeatedly write the code,which is almost the same in form and logic,and there are some bugs in each submitted version.It takes most time for software engineers to carry out repetitive work,but the code quality can not be guaranteedThe ThinkPHP frame code generator designed and implemented in this article mainly includes configuration management,module generation,authority control,file compression,and plug-in management."Configuration management" can flexibly adjust system parameters."Module generation" can be automatically generated according to the database design."Authority control" can flexibly control the access authority according to the module."File compression" reduces the traffic of network data and increases access speed."Plug-in management" can allow the system to extend flexibly and increase the functions of the system.Based on the ThinkPHP frame,The code generator uses composer for PHP dependency package management,conducts automatic generation of api documents through swagger,manages front-end dependency packages through bower,and compresses code through require js.Through the code generator implemented in this article,source code based on the MVC frame can be automatically generated by designing a database model.The automatically generated system supports search,check box selection,data addition,data deletion,data editing,data search,data import and export,paging,and information rendering.Code generation technology provides high-quality program development,good consistency,fast iteration speed,and low labor costs,which can greatly increase the programming speed of application software and reduce the occurrence of errors,so as to improve the productivity of application software.
Keywords/Search Tags:ThinkPHP, Code generator, Development efficiency, Restfulapi
PDF Full Text Request
Related items