GithubHelp home page GithubHelp logo

laiyongqin / think-builder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wa-craft/generator-php

0.0 1.0 0.0 7.64 MB

A command line toolit to build applications' CRUD/mvc scaffold for thinkphp v5. 用于生成 thinkphp v5 增查改删脚手架代码的命令行工具。

License: MIT License

PHP 4.20% HTML 2.82% CSS 70.77% JavaScript 20.08% CoffeeScript 2.11% Shell 0.01% Batchfile 0.01%

think-builder's Introduction

think-builder

Latest Stable Version Latest Unstable Version License

a cli tool to build applications for thinkphp v5, 通过定义数据对象的结构,自动生成相关的CRUD代码。

1. 功能

  • 自动创建默认的目录结构
  • 自动生成控制器程序以及CRUD方法
  • 自动生成模型程序以及关联模型
  • 自动生成后台校验器程序以及校验规则表
  • 自动生成 helper behavior 类
  • 自动生成CRUD的视图界面
  • 自动生成SQL数据库表结构
  • 自动生成菜单变量
  • 自动生成权限树 (TODO)
  • 自动生成 RBAC 数据(TODO)
  • 自动生成 nginx vhost 配置文件
  • 自动生成 .htaccess 配置文件
  • 完备的文档(TODO)

2. 使用方法

  1. 定义 project 目录下面的项目文件。
  2. 注意,运行之前要手动获取 commando:# composer update
  3. linux 下面执行 ./build ;windows 下执行 PS %path%\> ./build.bat

命令样例(linux):

{$think-builder}#./build -d sample/forge -a ./assets -t ./tmp

命令样例(windows):

PS %think-builder%\>build -d sample/forge -a ./assets -t ./tmp

3. 文档

4. 交流方式

QQ 群:348077414

think-builder's People

Watchers

 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.