marena/yii2-enhanced-gii
Composer 安装命令:
composer require marena/yii2-enhanced-gii
包简介
Generate Relational (has many) Models & CRUD.
README 文档
README
Yii2 Gii (generator) with Relation
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require mootensai/yii2-enhanced-gii:@dev
or add
"mootensai/yii2-enhanced-gii": "@dev"
to the require section of your composer.json file.
Then you must add this code at your config\main.php.
'modules' => [ ... //your another module 'gridview' => [ 'class' => '\kartik\grid\Module', ], ... // your another module ],
Usage :
Go to your gii tools, and notice the new IO Generator for models & CRUD
#Features
Model :
- Generate optimistic lock
- Generate Timestamp Behaviors
- Generate Blameable Behavior
- Generate UUID Behavior
CRUD :
- Generate all CRUD with wildcard (*) of table
- Generate related input output
- Specify your name/label attribute for foreign keys
- Set your column to hidden
- Specify your skipped columns
- Specify your skipped relations
- Set pluralize or not
- PDF Printable view
- Expandable / collapsible row at index grid view for related data
To Do
- Nested set detector & generator -> cancelled, move to -> https://github.com/mootensai/yii2-enhanced-gii-nested (unfinished)
- One-page-CRUD template
- Generate migrations for tables (like https://github.com/mdmsoft/yii2-gii)
- RESTful template
I'm open for any improvement
Thanks To
- Jiwanndaru (jiwanndaru@gmail.com) for creating the tradition
- kartik-v (https://github.com/kartik-v) for most of widgets
- schmunk42 (https://github.com/schmunk42) for bootstrap & model base & extension
- mdmunir (https://github.com/mdmunir) for JsBlock
marena/yii2-enhanced-gii 适用场景与选型建议
marena/yii2-enhanced-gii 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.16k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2016 年 04 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「relation」 「yii」 「yii2」 「gii」 「Enhanced」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 marena/yii2-enhanced-gii 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 marena/yii2-enhanced-gii 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 marena/yii2-enhanced-gii 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A CMS form field for adding has_one relationships using autocomplete
A custom URL rule class for Yii 2 which allows to create translated URL rules
Yii2 LightBox image galary widget uses Lightbox v2.10.0 by Lokesh Dhakar
Test easier your Eloquent Models in your Laravel Project
This package introduces the join magic for eloquent models and relations.
Micro Active Record library in PHP, support chain calls, events, and relations.
统计信息
- 总下载量: 3.16k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2016-04-12