orhant/veo-giiant
Composer 安装命令:
composer require orhant/veo-giiant
包简介
Gii CRUD generator for Yii 2 Framework
README 文档
README
"Giiant is huge!"
What is this?
Giiant is an extended code-generator for models and CRUDs, based upon Gii (Yii 2.0 Framework).
It creates prototypes for database models and backends including relations defined by foreign-key constrains in no-time.
To provide a highly flexible configuration system it features a callback-provider-queue to define rendering of customized inputs, columns or attribute values.
A main project goal is porting many features and learnings from gtc, giix, awecrud and other code-generators into one solution.
Resources
Features
Batch command
yii batchcreates all models and/or CRUDs for a set of tables sequentially with a single command
Model generator
- generates separate model classes to customize and base models classes which can be regenerated on schema changes
- table prefixes can be stripped off model class names (not bound to
dbconnection settings from Yii 2.0)
CRUD generator
- input, attribute, column and relation customization with provider queues
- callback provider to inject any kind of code for inputs, attributes and columns via dependency injection
- virtual-relation support (non-foreign key relations)
- model, view and controller locations can be customized to use subfolders
- horizontal and vertical form layout
- options for tidying generated code
- action button class customization (Select "App Class" option on the Action Button Class option on CRUD generator to customize)
Installation
The preferred way to install this extension is through composer.
Using a stable version
composer require schmunk42/yii2-giiant:"@stable"
Using latest master
composer require schmunk42/yii2-giiant:"@dev"
The generators are registered automatically in the application bootstrap process, if Gii module is enabled.
You can try giiant via phd (dockerized PHP application template).
Configuration
It's recommended to configure a customized batch command in your application CLI configuration.
'controllerMap' => [
'batch' => [
'class' => 'schmunk42\giiant\commands\BatchController',
'overwrite' => true,
'modelNamespace' => 'app\\modules\\crud\\models',
'crudTidyOutput' => true,
]
],
Note:
yii giiant-batchis an alias for the default configuration ofBatchControllerregistered by this extension.
You can add the giiant specific configuration config/giiant.php, and include this from your config/main.php.
See the batches section for configuration details.
Usage
To create a full-featured database backend, run the CLI batch command
yii batch
You can still override the settings from the configuration, like selecting specific tables
yii batch --tables=a,list,of,tables
Core commands
Show help for gii
yii help gii
Create application-module for giiant CRUDs
yii gii/giiant-module
The commands for generating models and CRUD, there are usually run via the batch command above.
yii gii/giiant-model
yii gii/giiant-crud
Advanced
Provider usage and configuration via dependency injection
See docs for details.
Using callbacks to provide code-snippets
See docs for details.
Troubleshooting
See docs for known-issues, platform specific usage, quirks, faq, ...
Extras
Special thanks to motin, thyseus, uldisn and rcoelho for their work, inspirations and feedback.
Screenshots
Built by dmstr
orhant/veo-giiant 适用场景与选型建议
orhant/veo-giiant 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 224 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 04 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「crud」 「yii2」 「gii」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 orhant/veo-giiant 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 orhant/veo-giiant 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 orhant/veo-giiant 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Gii Generator for double model generation
A custom URL rule class for Yii 2 which allows to create translated URL rules
The Gii extension for the Yii framework
A PSR-7 compatible library for making CRUD API endpoints
Admin panel generator for Laravel 8 and based on Vuetify Admin, a separate SPA admin framework running on top of REST APIs.
Collection of tools to use the full power of the Enyalius framework
统计信息
- 总下载量: 224
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 36
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2023-04-02

