marena/yii2-enhanced-gii

Generate Relational (has many) Models & CRUD.

Installs: 994

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 100

Type:yii2-extension

1.0.3 2021-11-29 13:03 UTC

This package is auto-updated.

Last update: 2022-07-29 01:10:42 UTC


README

Yii2 Gii (generator) with Relation

Latest Stable Version License Total Downloads Monthly Downloads Daily Downloads Join the chat at https://gitter.im/mootensai/yii2-enhanced-gii

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 :

  1. Generate optimistic lock
  2. Generate Timestamp Behaviors
  3. Generate Blameable Behavior
  4. Generate UUID Behavior

CRUD :

  1. Generate all CRUD with wildcard (*) of table
  2. Generate related input output
  3. Specify your name/label attribute for foreign keys
  4. Set your column to hidden
  5. Specify your skipped columns
  6. Specify your skipped relations
  7. Set pluralize or not
  8. PDF Printable view
  9. Expandable / collapsible row at index grid view for related data

To Do

  1. Nested set detector & generator -> cancelled, move to -> https://github.com/mootensai/yii2-enhanced-gii-nested (unfinished)
  2. One-page-CRUD template
  3. Generate migrations for tables (like https://github.com/mdmsoft/yii2-gii)
  4. RESTful template

I'm open for any improvement

Thanks To

  1. Jiwanndaru (jiwanndaru@gmail.com) for creating the tradition
  2. kartik-v (https://github.com/kartik-v) for most of widgets
  3. schmunk42 (https://github.com/schmunk42) for bootstrap & model base & extension
  4. mdmunir (https://github.com/mdmunir) for JsBlock