PHPackages                             insolita/yii2-fixturegii - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. insolita/yii2-fixturegii

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

insolita/yii2-fixturegii
========================

gii fixture helper - generate fixture classes; faker templates; fixture data files from table

2.0.0(8y ago)95.7k↑50%4[1 issues](https://github.com/Insolita/yii2-fixturegii/issues)MITPHP

Since Jun 21Pushed 4y ago3 watchersCompare

[ Source](https://github.com/Insolita/yii2-fixturegii)[ Packagist](https://packagist.org/packages/insolita/yii2-fixturegii)[ RSS](/packages/insolita-yii2-fixturegii/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (6)Used By (0)

Yii2-fixture/template-generator
===============================

[](#yii2-fixturetemplate-generator)

[![Status](https://camo.githubusercontent.com/c5611fd06a85df5b9cfa4cd57683bfedbd74b836c93d81b5253e1744977e7745/68747470733a2f2f7472617669732d63692e6f72672f496e736f6c6974612f796969322d666978747572656769692e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/c5611fd06a85df5b9cfa4cd57683bfedbd74b836c93d81b5253e1744977e7745/68747470733a2f2f7472617669732d63692e6f72672f496e736f6c6974612f796969322d666978747572656769692e7376673f6272616e63683d6d6173746572)[![Latest Stable Version](https://camo.githubusercontent.com/c7d20ec3cb53740caf98576eb810664c006a950292f05f4725b4bda29cab53e8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e736f6c6974612f796969322d666978747572656769692e737667)](https://camo.githubusercontent.com/c7d20ec3cb53740caf98576eb810664c006a950292f05f4725b4bda29cab53e8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e736f6c6974612f796969322d666978747572656769692e737667)[![Total Downloads](https://camo.githubusercontent.com/8ffbc7684ca46450f778cbaa6059243d2ee95ae26025c85689546526f0b664b5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e736f6c6974612f796969322d666978747572656769692e737667)](https://packagist.org/packages/insolita/yii2-fixturegii.svg)[![License](https://camo.githubusercontent.com/b5d8c8f0ecc4a7b7314641eaac235cecf6dc3d98e73fc035659d6a1637f628d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f696e736f6c6974612f796969322d666978747572656769692e737667)](https://camo.githubusercontent.com/b5d8c8f0ecc4a7b7314641eaac235cecf6dc3d98e73fc035659d6a1637f628d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f696e736f6c6974612f796969322d666978747572656769692e737667)

Gii fixture helper - generate fixture classes; faker templates; fixture data files from table support bulk template and data-file generations

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

[](#installation)

```
composer require --dev --prefer-dist insolita/yii2-fixturegii "~3.0.0"

```

or add

```
"insolita/yii2-fixturegii": "~3.0.0"

```

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

Usage
-----

[](#usage)

Register insolita\\fixturegii\\Bootstrap in bootstrap section of backend application, or add needed generators in section of gii module

Go to gii and use new Generators

**Suggest:**

define '@test' or '@fixture' alias for quick path setup

Customize
---------

[](#customize)

Set up in gii config sections

```
  $config['modules']['gii'] = [
          'class' => 'yii\gii\Module',
          'generators' => [
              //...
              'fixtureClass'=>[
                  'class'=>\insolita\fixturegii\generators\ClassGenerator::class,
                  'templates'=>[
                           //add your custom
                  ]
              ],
              'fixtureData'=>[
                  'class'=>\insolita\fixturegii\generators\DataGenerator::class,
                  'tableResolverClass'=>'You can set own implementation',
                  'templates'=>[
                        //add your custom
                  ]
              ],
              'fixtureTemplate'=>[
              'class'=>\insolita\fixturegii\generators\TemplateGenerator::class,
                'tableResolverClass'=>'You can set own implementation',
                'columnResolverClass'=>'You can set own implementation',
                'templates'=>[
                        //add your custom
                ]
              ],
          ]
          //...
      ];
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

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

###  Release Activity

Cadence

Every ~166 days

Total

4

Last Release

3112d ago

Major Versions

0.1 → 1.02017-05-27

1.0.4 → 2.0.02017-11-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/40f26825f8c130796e3151e6c076721cf5bb222c42148102bb31a341a1a5c789?d=identicon)[Insolita](/maintainers/Insolita)

---

Top Contributors

[![Insolita](https://avatars.githubusercontent.com/u/1847402?v=4)](https://github.com/Insolita "Insolita (51 commits)")[![MaksimKiselev](https://avatars.githubusercontent.com/u/4495801?v=4)](https://github.com/MaksimKiselev "MaksimKiselev (4 commits)")[![kafeg](https://avatars.githubusercontent.com/u/2333783?v=4)](https://github.com/kafeg "kafeg (2 commits)")[![Romariosss](https://avatars.githubusercontent.com/u/1794556?v=4)](https://github.com/Romariosss "Romariosss (1 commits)")

---

Tags

hacktoberfestyii2extension

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/insolita-yii2-fixturegii/health.svg)

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

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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