Download the PHP package drcarpen/builder without Composer

On this page you can find all versions of the php package drcarpen/builder. 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 builder

Builder

介绍

以命令行模式生成对应的 Model,Trait,Struct,Service,Logic,Controller文件,自动生成“CURD” 的接口模板

使用方法

1 composer.json引入如下包名,更新composer
2 app/Commands 加入新文件 BuilderCommand.php
3 .gitignore文件添加忽略目录
4 命令行第三个参数为数据表命,必须依照规范,为下划线定义,如 wx_members

参数说明

  1. --table tableName 表名必填,根据此表名生成对应的Model等文件(默认使用database.php中的配置)
  2. -e environment 指定的环境变量,可改变database.php中的对应环境的数据库配置

功能说明

Model层

  1. 根据指定的数据表生成对应的Model文件
  2. 生成property属性
  3. model含有status字段时,自动生成对应的statusText

Struct层

  1. 生成对应的trait文件
  2. 生成 create,delete,update,detail,listing,paging六个入参结构体
  3. 生成row,rows,listing三个出参结构体

Service层

  1. 生成create,delete,update,detail,listing,paging的方法

Logic层

  1. 生成create,delete,update,detail,listing,paging的逻辑层文件

Controller层

  1. 生成create,delete,update,detail,listing,paging的方法及sdk名

版本更新计划

v1.1版本
  1. 已知bug修复
  2. 支持多model生成,baseModel与normalModel拆分,支持重写
  3. 支持数据字段注解,支持@enum(1=a|2=b)的文档显示
  4. 支持单model重写 --model all --model tableName
v3.1.0版本

1.支持别名 2.快速常用的创建curd 3.指定controller生成路径


All versions of builder with dependencies

PHP Build Version
Package Version
Requires uniondrug/framework Version ^2.0
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 drcarpen/builder contains the following files

Loading the files please wait ....