PHPackages                             zhangyc310/yii2-kartikgii - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. zhangyc310/yii2-kartikgii

ActiveLibrary[Framework](/categories/framework)

zhangyc310/yii2-kartikgii
=========================

Gii Generator base on Kartik-V extension https://github.com/kartik-v

2371PHP

Since Jan 18Pushed 3y agoCompare

[ Source](https://github.com/zhangyc310/yii2-kartikgii)[ Packagist](https://packagist.org/packages/zhangyc310/yii2-kartikgii)[ RSS](/packages/zhangyc310-yii2-kartikgii/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Enhances:
---------

[](#enhances)

bulk-del brach.

1. add support more fieldtypes ,such as select2,file upload,checkbox,checkboxList,dropdowlist and so.
2. bulk delete on index page

[![image](https://raw.githubusercontent.com/zhangyc310/yii2-kartikgii/bulk-del/images/gii-types.png)](https://raw.githubusercontent.com/zhangyc310/yii2-kartikgii/bulk-del/images/gii-types.png)

[![image](https://raw.githubusercontent.com/zhangyc310/yii2-kartikgii/bulk-del/images/bulk-del.png)](https://raw.githubusercontent.com/zhangyc310/yii2-kartikgii/bulk-del/images/bulk-del.png)
==============================================================================================================================================================================================

[](#)

I would like to apologize for not following up with this plugin because i has been migrate over to Laravel. However i would like to thanks everyone for using this plugin. Please do let me know is there any nice fork of this project, i will share to link for everyone here.

yii2-kartikgii
==============

[](#yii2-kartikgii)

Gii CRUD Generator base on kartik-v extension. Save repeatitive works on every new CRUD generated. Below are some of the features:

- Data grid view are generated using kartik-v/yii2-grid, pjax are use for the grid.
- Detail View are generated using kartik-v/yii2-detail-view, controllers are generated to support edit mode saving and delete in Detail View.
- \_form are generated using kartik-v/yii2-builder, Date/Time/DateTime/TimeStamp column are automatically generated to use DateTimePicker Widget.
- Using kartik-v/yii2-datecontrol to globalize date format, so date will automatically convert for the display and also for save according to the format you set, for all CRUD generated using this extension.

By using this extension, you no longer have to change your CRUD to using kartik-v extension, everything will be auto generated for you, and you could customize it later if you need.

Thanks for the great kartik-v extension.

For more information about kartik-v extension, please visit [kartik-v at Github](https://www.github.com/kartik-v).

> NOTE: This is the first extension i created, please kindly comment or suggest for better or correct me if im doing anything wrong. Thanks.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ php composer.phar require zhangyc310/yii2-kartikgii "dev-master" "dev-bulk-del"

```

修改了安装命令，可以直接安装了。

or add

```
"zhangyc310/yii2-kartikgii": ""dev-bulk-del""

```

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

```
//if your gii modules configuration looks like below:
$config['modules']['gii'] = 'yii\gii\Module';

//change it to
$config['modules']['gii']['class'] = 'yii\gii\Module';
```

```
//Add this into backend/config/main-local.php
$config['modules']['gii']['generators'] = [
        'kartikgii-crud' => ['class' => 'zhangyc310\kartikgii\crud\Generator'],
    ];
```

注意，这里是 `zhangyc310\kartikgii\crud\Generator`

```
//Add 'gridview' into your 'modules' section in backend/config/main.php
'modules' => [
        'gridview' => [
            'class' => 'kartik\grid\Module',
        ],

    ],
```

```
//add modules 'datecontrol' into your 'modules' section in common/config/main
'modules' => [
        'datecontrol' =>  [
            'class' => 'kartik\datecontrol\Module',

            // format settings for displaying each date attribute
            'displaySettings' => [
                'date' => 'd-m-Y',
                'time' => 'H:i:s A',
                'datetime' => 'd-m-Y H:i:s A',
            ],

            // format settings for saving each date attribute
            'saveSettings' => [
                'date' => 'Y-m-d',
                'time' => 'H:i:s',
                'datetime' => 'Y-m-d H:i:s',
            ],

            // automatically use kartik\widgets for each of the above formats
            'autoWidget' => true,

        ]
    ],
```

关于批量删除功能的说明
-----------

[](#关于批量删除功能的说明)

### 生成的 view/index.php 文件中的按钮路径，某些情况下需要修改一下

[](#生成的-viewindexphp-文件中的按钮路径某些情况下需要修改一下)

```
line75： $del_url = Url::to(['parse-log-rules/delete-all']);

```

默认类名为`ParseLogRules`，需要改为 `parse-log-rules`，非必要步骤。

License
-------

[](#license)

**yii2-kartikgii** is released under the BSD 3-Clause License. See the bundled `LICENSE.md` for details.

下面的不在需要了

```
##  注意，通过这种方式，下载 `yii2-kartikgii` 需要的相关包。
##  然后下载我的修改版 `git clone https://github.com/zhangyc310/yii2-kartikgii`，并放到`vendor/zhangyc310`目录下。

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/99fff4e8794a33060460357f33c6926ca146cbadc34c55fa116bed473aacc3ff?d=identicon)[zhangyc310](/maintainers/zhangyc310)

---

Top Contributors

[![warrence](https://avatars.githubusercontent.com/u/2050050?v=4)](https://github.com/warrence "warrence (19 commits)")[![zhangyc310](https://avatars.githubusercontent.com/u/8527838?v=4)](https://github.com/zhangyc310 "zhangyc310 (17 commits)")[![abolivar](https://avatars.githubusercontent.com/u/92059?v=4)](https://github.com/abolivar "abolivar (1 commits)")[![execut](https://avatars.githubusercontent.com/u/2357407?v=4)](https://github.com/execut "execut (1 commits)")[![yashj13](https://avatars.githubusercontent.com/u/43922856?v=4)](https://github.com/yashj13 "yashj13 (1 commits)")

### Embed Badge

![Health badge](/badges/zhangyc310-yii2-kartikgii/health.svg)

```
[![Health](https://phpackages.com/badges/zhangyc310-yii2-kartikgii/health.svg)](https://phpackages.com/packages/zhangyc310-yii2-kartikgii)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
