Download the PHP package quansitech/qscmf-curd-generator without Composer

On this page you can find all versions of the php package quansitech/qscmf-curd-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package qscmf-curd-generator

qscmf-curd-generator

增删查改自动生成器

安装

用法

  1. 先创建数据库迁移文件
  2. 在迁移代码中设置表、字段注释,生成器根据注释自动生成对应的代码
注释格式

注释格式统一采用 @key=value; 的形式(最后的分号是格式的一部分)

如:设置字段title和type两个键值

@title=发布时间;@type=date;

注释类型
  1. title

    可用在表注释和字段注释中,表注释为必填,没有设置会报错

  2. type

    • select

    表示该字段为外键,与另外一张表关联

    必填配置值 (table 、 list的模式二选一)

    table模式(通过另外一张表获取下来选项)

    table 关联的表名

    show 关联表的描述字段

    样例代码

    list模式(通过DBCont获取下拉列表)

    list

    DBCont中的变量名

    如 Qscmf\Lib\DBCont 中的禁用启用项 $_status, 那么它的list就是 status

    又如 Qscmf\Lib\DBCont 中的是否项 $_bool_status $_bool_status, 那么它的list就是 boolStatus

    样例代码

  1. save

    设置字段是否可以在list页面进行快速修改

    样例代码

    目前支持save的类型有text、url、phone、email、num、select、date、textarea

  2. require

    字段是否必填

    样例代码

生成命令
参数介绍

执行后会自动在app/Admin/Controller和app/Common/Model下分别生成controller和model

根据业务需要,可对文件自行二次开发


All versions of qscmf-curd-generator with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
tiderjian/think-core Version >=13
quansitech/qscmf-buttontype-modal Version >=3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package quansitech/qscmf-curd-generator contains the following files

Loading the files please wait ....