Thinkphp custom code generation tool and usage instructions (with download address), thinkphp generation tool_PHP tutorial

WBOY
Release: 2016-07-12 08:50:52
Original
914 people have browsed it

Thinkphp custom code generation tool and usage instructions (with download address), thinkphp generation tool

This article describes the Thinkphp custom code generation tool and usage instructions with examples. Share it with everyone for your reference, the details are as follows:

I have been frustrated recently to find that when using Thinkphp, I often do repetitive things, such as repeatedly writing the simplest CRUD methods, writing forms, writing front-end style sheets, etc.

Thinkphp’s support for background operations is already very powerful, and the recently popular Bootstrap framework makes it easy for front-end styles to follow a standard, so I decided to start writing a code generator of my own.

I hope it is simple enough to operate and can be understood at a glance. It would be good if it could stably generate CRUD code for both MySql and Sqlite databases. It would also be better if it could also generate some View code that conforms to the Bootstrap framework.

After about ten hours of struggle, ThinkphpHelper was born!

It has only one file, supports MySQL and sqlite databases, quickly generates front-end and back-end CRUD code snippets, and reduces duplication of work. And there is only one file, which is lightweight and convenient.

You only need to configure the database information, put it in the Action directory of your project file, and then call it like this:

http://[your project address]/index.php/ThinkphpHelper

I wrote all the style sheets into this file, making it easy for you to copy and paste into any Thinkphp project. The related files of Bootstrap and jquery used in it are read from the CDN on the Internet, so use it It is best to ensure that your network is open. If you do not have a network, you can modify the relevant addresses yourself.

You must be smart and know how to use it, right?

Attachment: Click here for Thinkphp code generatorDownload from this site.

Directly generate front-end and back-end CRUD code snippets, and you can also customize code templates as needed to reduce duplication of work. Supports MySQL and sqlite databases to quickly build project prototypes.

PS: Here are several formatting/beautifying/conversion tools recommended on this site to help you sort out the messy code. I believe everyone can use it in future development:

php code online formatting and beautification tool:
http://tools.jb51.net/code/phpformat

Online XML/JSON conversion tool:
http://tools.jb51.net/code/xmljson

JSON code online formatting/beautifying/compressing/editing/conversion tool:
http://tools.jb51.net/code/jsoncodeformat

SQL code online formatting and beautification tool:
http://tools.jb51.net/code/sqlcodeformat

Readers who are interested in more thinkPHP-related content can check out the special topics on this site: "Introduction to ThinkPHP Tutorial", "Summary of Common Methods of ThinkPHP", "Summary of Cookie Usage in PHP", "Basic Tutorial for Getting Started with Smarty Templates" and "PHP Template technology summary".

I hope this article will be helpful to everyone’s PHP programming based on the ThinkPHP framework.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1133061.htmlTechArticleThinkphp custom code generation tool and usage instructions (with download address), thinkphp generation tool This article describes the Thinkphp custom code generation tool with examples Define code generation tools and usage instructions. Share it with everyone...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template