Giter Site home page Giter Site logo

thinkphphelper's Introduction

ThinkphpHelper

支持MySQL 和 sqlite数据库,快速生成前后台CRUD代码片段,减少重复劳动。而且只有一个文件,轻巧方便。

写这个东西的原因是因为我最近沮丧的发现很多时候我都在做重复的事情,比如重复写最简单的CRUD方法,编写表单,写前台样式表等等。

Thinkphp对于后台操作的支持已经非常强大,再加上最近非常流行的Bootstrap框架让前台样式也变得容易遵循一个标准,于是我决定开始写一个属于自己的代码生成器。

我希望它操作足够简单,让人一看就懂,对MySql和Sqlite数据库都能够稳定生成CRUD代码就好,还如果还能顺便生成一些符合Bootstrap框架的View代码就更好啦。

经过了大概十几个小时的奋斗,ThinkphpHelper诞生啦!

它只有一个文件,支持MySQL 和 sqlite数据库,快速生成前后台CRUD代码片段,减少重复劳动。而且只有一个文件,轻巧方便。

你只需要配置好数据库信息后把它放到你项目文件的任意一个Controller目录中,然后像这样调用它:http://[你的项目地址]/index.php/[模块名]/ThinkphpHelper

我把所有的样式表都写到了这个文件中,使它方便你复制粘贴到任何Thinkphp项目中,其中用到的Bootstrap和jquery的相关文件是读取网络上的CDN,所以使用它的时候最好保证你的网络畅通,如果你没有网络的话,可以自行修改相关的地址。

注意,它只是生成代码片段,所有相应的文件还是需要你自己亲手创建。使用之前一定要准备好你的数据库以及数据库里的数据表,不过聪明的你一定知道它是怎么用的对吧?

最新版目前已经支持Thinkphp3.2.2 由于3.2.2更新幅度较大,以后对Thinkphp3.1.x的支持不再更新,未来也会考虑加入直接生成文件的功能。

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

项目地址:https://github.com/zhuanqianfish/ThinkphpHelper

详细使用说明地址:http://zhuanqianfish.github.io/ThinkphpHelper

↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑

ThinkphpHelper遵循Apache2开源协议发布,并提供免费使用。

thinkphphelper's People

Contributors

zhuanqianfish avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.