PHPackages                             prowebcraft/yii2-double-model - 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. [Admin Panels](/categories/admin)
4. /
5. prowebcraft/yii2-double-model

ActiveYii2-extension[Admin Panels](/categories/admin)

prowebcraft/yii2-double-model
=============================

Yii2 - Gii Double Model Generator

0.1.4(5y ago)02.4k—0%1BSD-4-ClausePHPPHP &gt;=5.3.0

Since Nov 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/prowebcraft/yii2-double-model)[ Packagist](https://packagist.org/packages/prowebcraft/yii2-double-model)[ Docs](https://github.com/prowebcraft/yii2-double-model)[ RSS](/packages/prowebcraft-yii2-double-model/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (8)Versions (17)Used By (0)

yii2-double-model-gii
=====================

[](#yii2-double-model-gii)

This generator generates two ActiveRecord class for the specified database table. An empty one you can extend and a Base one which is the same as the original model generatior.

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

[](#installation)

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

Either run

```
$ php composer.phar require --dev "prowebcraft/yii2-double-model": "dev-master"

```

or add

```
"prowebcraft/yii2-double-model": "dev-master"

```

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

Usage
-----

[](#usage)

By Default Extension comes with Bootstrap file. Just install it. If you need manual installation, follow these steps:

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

//remove this two lines
```

```
//Add this into common/config/main-local.php
    'bootstrap' => 'gii',
    'modules' => [
        'gii' => [
            'class' => 'yii\gii\Module',
            'generators' => [
                'doubleModel' => [
                    'class' => 'prowebcraft\yii2doublemodel\generators\model\Generator',
                    'strictReturnTypes' => true,
                ],
                'kartik-crud' => [
                    'class'     => 'prowebcraft\yii2doublemodel\generators\kcrud\Generator',
                ],
            ],
        ],
    ],
```

Remove `strictReturnTypes` option if you don't need strict return types

Open URL  in browser and follow instructions

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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.

###  Release Activity

Cadence

Every ~143 days

Recently: every ~190 days

Total

16

Last Release

2036d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4133348?v=4)[Andrei Mistulov](/maintainers/prowebcraft)[@prowebcraft](https://github.com/prowebcraft)

---

Top Contributors

[![claudejanz](https://avatars.githubusercontent.com/u/1180289?v=4)](https://github.com/claudejanz "claudejanz (18 commits)")[![prowebcraft](https://avatars.githubusercontent.com/u/4133348?v=4)](https://github.com/prowebcraft "prowebcraft (6 commits)")

---

Tags

yii2crudgiidouble-model

### Embed Badge

![Health badge](/badges/prowebcraft-yii2-double-model/health.svg)

```
[![Health](https://phpackages.com/badges/prowebcraft-yii2-double-model/health.svg)](https://phpackages.com/packages/prowebcraft-yii2-double-model)
```

###  Alternatives

[mootensai/yii2-enhanced-gii

Generate Relational (hasMany, hasOne, belongsTo, &amp; nested) Models &amp; CRUD.

202174.6k5](/packages/mootensai-yii2-enhanced-gii)[schmunk42/yii2-giiant

Gii CRUD generator for Yii 2 Framework

269471.5k17](/packages/schmunk42-yii2-giiant)

PHPackages © 2026

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