Download the PHP package yunjuji/yunjuji-generator without Composer

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

Yunjuji Generator


github或者码云上拉取目录使用说明

目录说明

字段详情

  1. fields-字段列表
    1. 说明:fields:【字段】【格式:字段名:字段别名;】 vasset_no: 视频编号; name: 名称; title: 标题; subtitle: 副标题; spell: 拼音; short_desc: 简述; long_desc: 详述; score: 评分; expiring_at: 失效日期; online_at: 上线日期; offline_at: 下线日期; published_at: 发布日期; season: 第几季; episode: 共几集; latest: 最近更新
  2. foriegns-外键
    1. 说明:foriegns:【外键】【格式:字段名:表名(注意一般的表名都是下划线命名法, 并且加s), 映射字段名(如果相同可以省略);】 vcat_no: vcats; vseason_no: vseasons, vseason_no; vyearcat_no: vyearcats; vareacat_no: vareacats; vareacat_no: vareacats; vlangcat_no: vlangcats
  3. tags-关联关系
    1. 说明:tags:【标签】【格式:模型名(大写,没s), 中间表名, 映射关系】 "mtm,Role,user_roles,user_id,role_id"【设计有问题】
  4. relations-关联关系
    1. 说明:relations:【关联关系】【格式: 关联关系类型(1t1:一对一, 1tm:一对多, mt1:反向一对多, m2m:多对多, hmt:远程一对多, mht:多态关联, mhm, mhtm, mhbm), 模型名(大写, 没s), 映射关系(具体分析)】 "1tm,Writer,writer_id,id"【设计有问题】
  5. query【暂不处理】
  6. sortby【暂不处理】
  7. inForms-是否在form中显示
    1. 说明:inForms: 【需要在编辑form里面显示的字段】【格式:字段名;】 vasset_no;name;title;subtitle;spell;short_desc;long_desc;score;expiring_at;online_at;offline_at;published_at;season;episode;latest
  8. inIndexs-是否在table中显示
    1. 说明:inIndexs:【是否需要在表格里面显示字段】【格式:字段名;】 vasset_no;name;title;subtitle;spell;short_desc;long_desc;score;expiring_at;online_at;offline_at;published_at;season;episode;latest
  9. validations-校验
    1. 说明:validations:【校验】【格式:字段名:校验规格(多个校验规则用|);】 vasset_no:required|max:100;name:required;title:required;subtitle:required;spell:required
  10. htmlTypes-表单控件
    1. 说明:htmlTypes:【控件类型】【格式:字段名:控件类型 】 vasset_no:text;name:text;title:text;subtitle:text;spell:text;short_desc:text;long_desc:textarea;score:number;expiring_at:datetime;online_at:datetime;offline_at:datetime;published_at:datetime;season:text;episode:text;latest:text
  11. dbTypes-数据库字段类型
    1. 说明:dbTypes:【数据库字段类型】【格式:字段名:字段类型,字段长度(可选, 如果没有长度则 , 和 字段长度都可以不要);】 vasset_no:string, 100;name:string, 100;title:string, 100;subtitle:string, 100;spell:string, 100;short_desc:string, 100; long_desc:text; score: decimal,10,2; expiring_at: timestamp;online_at: timestamp;offline_at:timestamp;published_at:timestamp;season:string, 10;episode:string, 10;latest:string, 10
  12. nullables-能否为null
    1. 说明:nullables:【能否为null】【格式:字段名;】 score;expiring_at;online_at;offline_at;published_at;season;episode;latest
  13. indexs-是否为索引
    1. 说明:indexs:【索引】【格式:字段名;(复合索引目前没考虑)】 vasset_no;name;title;subtitle;spell;short_desc;long_desc;score

      json文件说明

      model.json文件

      • 格式说明:#
      • json格式:整个文件是一个{}
      • 参数说明
      • model_name:模型名(首字母大写)
      • perfix_name:目录结构
      • title:模型的中文名
      • 例子

过滤字段json文件

命名空间映射json文件

字段json文件【不需要看这个】

安装

安装自动产生的依赖

引入自定义路由

安装 laravel-admin

首先确保安装好了 laravel,并且数据库连接设置正确。

然后运行下面的命令来发布资源:

在该命令会生成配置文件 config/admin.php,可以在里面修改安装的地址、数据库连接、以及表名,建议都是用默认配置不修改。 生成如下文件:

建议将 config/admin.php 里面的 database 部分的表名添加 laravel_ 前缀. 一共九张表. 然后运行下面的命令完成安装:

生成的文件:

正式安装 yunjuji/yunjuji-generator

字段详情

  1. fields-字段列表
    1. 说明:fields:【字段】【格式:字段名:字段别名;】 vasset_no: 视频编号; name: 名称; title: 标题; subtitle: 副标题; spell: 拼音; short_desc: 简述; long_desc: 详述; score: 评分; expiring_at: 失效日期; online_at: 上线日期; offline_at: 下线日期; published_at: 发布日期; season: 第几季; episode: 共几集; latest: 最近更新
  2. foriegns-外键
    1. 说明:foriegns:【外键】【格式:字段名:表名(注意一般的表名都是下划线命名法, 并且加s), 映射字段名(如果相同可以省略);】 vcat_no: vcats; vseason_no: vseasons, vseason_no; vyearcat_no: vyearcats; vareacat_no: vareacats; vareacat_no: vareacats; vlangcat_no: vlangcats
  3. tags-关联关系
    1. 说明:tags:【标签】【格式:模型名(大写,没s), 中间表名, 映射关系】 "mtm,Role,user_roles,user_id,role_id"【设计有问题】
  4. relations-关联关系
    1. 说明:relations:【关联关系】【格式: 关联关系类型(1t1:一对一, 1tm:一对多, mt1:反向一对多, m2m:多对多, hmt:远程一对多, mht:多态关联, mhm, mhtm, mhbm), 模型名(大写, 没s), 映射关系(具体分析)】 "1tm,Writer,writer_id,id"【设计有问题】
  5. query【暂不处理】
  6. sortby【暂不处理】
  7. inForms-是否在form中显示
    1. 说明:inForms: 【需要在编辑form里面显示的字段】【格式:字段名;】 vasset_no;name;title;subtitle;spell;short_desc;long_desc;score;expiring_at;online_at;offline_at;published_at;season;episode;latest
  8. inIndexs-是否在table中显示
    1. 说明:inIndexs:【是否需要在表格里面显示字段】【格式:字段名;】 vasset_no;name;title;subtitle;spell;short_desc;long_desc;score;expiring_at;online_at;offline_at;published_at;season;episode;latest
  9. validations-校验
    1. 说明:validations:【校验】【格式:字段名:校验规格(多个校验规则用|);】 vasset_no:required|max:100;name:required;title:required;subtitle:required;spell:required
  10. htmlTypes-表单控件
    1. 说明:htmlTypes:【控件类型】【格式:字段名:控件类型 】 vasset_no:text;name:text;title:text;subtitle:text;spell:text;short_desc:text;long_desc:textarea;score:number;expiring_at:datetime;online_at:datetime;offline_at:datetime;published_at:datetime;season:text;episode:text;latest:text
  11. dbTypes-数据库字段类型
    1. 说明:dbTypes:【数据库字段类型】【格式:字段名:字段类型,字段长度(可选, 如果没有长度则 , 和 字段长度都可以不要);】 vasset_no:string, 100;name:string, 100;title:string, 100;subtitle:string, 100;spell:string, 100;short_desc:string, 100; long_desc:text; score: decimal,10,2; expiring_at: timestamp;online_at: timestamp;offline_at:timestamp;published_at:timestamp;season:string, 10;episode:string, 10;latest:string, 10
  12. nullables-能否为null
    1. 说明:nullables:【能否为null】【格式:字段名;】 score;expiring_at;online_at;offline_at;published_at;season;episode;latest
  13. indexs-是否为索引
    1. 说明:indexs:【索引】【格式:字段名;(复合索引目前没考虑)】 vasset_no;name;title;subtitle;spell;short_desc;long_desc;score

      json文件说明

      字段json文件

过滤字段json文件

命名空间映射json文件

本项目目前支持的能力集

  1. 表(migration), 说明:相当于数据库里的表字段的定义, 作用:建表
    • 字段类型和长度, 具体支持参考字段类型, 里面有的类型都支持
    • 支持能否为null
    • 索引
    • 外键
  2. 模型(Models), 说明:表的orm
    • 1对1关联, 具体的支持参考模型关联关系, 里面有的类型都支持
    • 1对多关联
    • 反向一对多关联
    • 多对多关联
    • 远程一对多
    • 多态关联
    • 多态多对多关联
  3. 仓库(Repositories), 说明:对模型的一层封装
    • 使用 prettus/l5-repository 对模型进行了一层封装, 模型 新建修改 操作的时候用了,目的是将一些逻辑抽离出来,避免控制器和模型冗余
  4. 请求(Requests), 说明:http请求的依赖注入,做一些数据合法性校验(比如: 非空必填, 长度限制等)
  5. 路由(routes), 说明:定义uri

    • 产生crud的路由,现在会产生8项路由 例子如下:
  6. 控制器(Controllers)
    • 基本的curd功能
    • 表格(我们基本喜欢叫grid或者table)
    • 表单(form)
    • 批量删除
    • 过滤区域

      本项目目前还在开发的能力集

      暂无


All versions of yunjuji-generator with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
laravel/framework Version 5.5.*
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 yunjuji/yunjuji-generator contains the following files

Loading the files please wait ....