PHPackages                             orhant/veo-giiant - 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. orhant/veo-giiant

ActiveYii2-extension[Framework](/categories/framework)

orhant/veo-giiant
=================

Gii CRUD generator for Yii 2 Framework

0224PHP

Since Sep 12Pushed 2y agoCompare

[ Source](https://github.com/orhant/veo-giiant)[ Packagist](https://packagist.org/packages/orhant/veo-giiant)[ RSS](/packages/orhant-veo-giiant/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-giiant
===========

[](#yii2-giiant)

> "Giiant is huge!"

[![Build Status](https://camo.githubusercontent.com/ea63b761c607119cace6da17af65214ab61e34b694e6593f98b89339e809d132/68747470733a2f2f7472617669732d63692e636f6d2f7363686d756e6b34322f796969322d676969616e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/schmunk42/yii2-giiant)

What is this?
-------------

[](#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
---------

[](#resources)

- [Documentation](docs/README.md)
- [Upgrading instructions](UPGRADING.md)
- [Project Source-Code](https://github.com/schmunk42/yii2-giiant)
- [Packagist](https://packagist.org/packages/schmunk42/yii2-giiant)
- [Yii Extensions](http://www.yiiframework.com/extension/yii2-giiant/)

Features
--------

[](#features)

### Batch command

[](#batch-command)

- `yii batch` creates all models and/or CRUDs for a set of tables sequentially with a single command

### Model generator

[](#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 `db` connection settings from Yii 2.0)

### CRUD generator

[](#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
------------

[](#installation)

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

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](http://phundament.com) (dockerized PHP application template).

Configuration
-------------

[](#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-batch` is an alias for the default configuration of `BatchController` registered by this extension.

You can add the giiant specific configuration `config/giiant.php`, and include this from your `config/main.php`.

See the [batches](docs/20-batches.md) section for configuration details.

Usage
-----

[](#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

[](#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
--------

[](#advanced)

### Provider usage and configuration via dependency injection

[](#provider-usage-and-configuration-via-dependency-injection)

See [docs](docs/30-using-providers.md) for details.

### Using callbacks to provide code-snippets

[](#using-callbacks-to-provide-code-snippets)

See [docs](docs/31-callback-provider-examples.md) for details.

### Troubleshooting

[](#troubleshooting)

See [docs](docs/60-troubleshooting.md) for known-issues, platform specific usage, quirks, faq, ...

Extras
------

[](#extras)

Special thanks to [motin](https://github.com/motin), [thyseus](https://github.com/thyseus), [uldisn](https://github.com/uldisn) and [rcoelho](https://github.com/rcoelho) for their work, inspirations and feedback.

Screenshots
-----------

[](#screenshots)

[![giiant-0 2-screen-1](https://cloud.githubusercontent.com/assets/649031/5692432/c93fd82c-98f5-11e4-8b52-8f35df52986f.png)](https://cloud.githubusercontent.com/assets/649031/5692432/c93fd82c-98f5-11e4-8b52-8f35df52986f.png)[![giiant-0 2-screen-2](https://cloud.githubusercontent.com/assets/649031/5692429/c9189492-98f5-11e4-969f-02a302ca6974.png)](https://cloud.githubusercontent.com/assets/649031/5692429/c9189492-98f5-11e4-969f-02a302ca6974.png)

---

Built by [dmstr](http://diemeisterei.de)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75.9% of commits — single point of failure

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/b55ba04e6b9847ed247edc1c996aa8570c5d4edca8a7be7330baae6db46fdb4e?d=identicon)[orhant](/maintainers/orhant)

---

Top Contributors

[![schmunk42](https://avatars.githubusercontent.com/u/649031?v=4)](https://github.com/schmunk42 "schmunk42 (669 commits)")[![uldisn](https://avatars.githubusercontent.com/u/3525344?v=4)](https://github.com/uldisn "uldisn (67 commits)")[![cornernote](https://avatars.githubusercontent.com/u/51875?v=4)](https://github.com/cornernote "cornernote (36 commits)")[![orhant](https://avatars.githubusercontent.com/u/12018611?v=4)](https://github.com/orhant "orhant (21 commits)")[![handcode](https://avatars.githubusercontent.com/u/825574?v=4)](https://github.com/handcode "handcode (7 commits)")[![liasica](https://avatars.githubusercontent.com/u/671431?v=4)](https://github.com/liasica "liasica (7 commits)")[![rhertogh](https://avatars.githubusercontent.com/u/1292337?v=4)](https://github.com/rhertogh "rhertogh (7 commits)")[![fredyns](https://avatars.githubusercontent.com/u/4033019?v=4)](https://github.com/fredyns "fredyns (7 commits)")[![eluhr](https://avatars.githubusercontent.com/u/13000805?v=4)](https://github.com/eluhr "eluhr (6 commits)")[![marc7000](https://avatars.githubusercontent.com/u/1118837?v=4)](https://github.com/marc7000 "marc7000 (6 commits)")[![lubobill1990](https://avatars.githubusercontent.com/u/641540?v=4)](https://github.com/lubobill1990 "lubobill1990 (6 commits)")[![zk-kb4](https://avatars.githubusercontent.com/u/42388953?v=4)](https://github.com/zk-kb4 "zk-kb4 (5 commits)")[![cebe](https://avatars.githubusercontent.com/u/189796?v=4)](https://github.com/cebe "cebe (5 commits)")[![adipriyantobpn](https://avatars.githubusercontent.com/u/4537439?v=4)](https://github.com/adipriyantobpn "adipriyantobpn (3 commits)")[![germanbisurgi](https://avatars.githubusercontent.com/u/13135260?v=4)](https://github.com/germanbisurgi "germanbisurgi (3 commits)")[![hector-del-rio](https://avatars.githubusercontent.com/u/9391691?v=4)](https://github.com/hector-del-rio "hector-del-rio (3 commits)")[![jwaldock](https://avatars.githubusercontent.com/u/7036147?v=4)](https://github.com/jwaldock "jwaldock (3 commits)")[![motin](https://avatars.githubusercontent.com/u/793037?v=4)](https://github.com/motin "motin (2 commits)")[![gradosevic](https://avatars.githubusercontent.com/u/10562516?v=4)](https://github.com/gradosevic "gradosevic (2 commits)")[![mixartemev](https://avatars.githubusercontent.com/u/5181924?v=4)](https://github.com/mixartemev "mixartemev (2 commits)")

### Embed Badge

![Health badge](/badges/orhant-veo-giiant/health.svg)

```
[![Health](https://phpackages.com/badges/orhant-veo-giiant/health.svg)](https://phpackages.com/packages/orhant-veo-giiant)
```

###  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.7M257](/packages/laravel-dusk)[laravel/prompts

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

708181.8M593](/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)
