PHPackages                             allankaio/giitester - 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. [Database &amp; ORM](/categories/database)
4. /
5. allankaio/giitester

ActiveYii2-extension[Database &amp; ORM](/categories/database)

allankaio/giitester
===================

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

034PHP

Since Oct 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/AllanKaio21/GiiTester)[ Packagist](https://packagist.org/packages/allankaio/giitester)[ RSS](/packages/allankaio-giitester/feed)WikiDiscussions main Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Gii Tester
==========

[](#gii-tester)

Gii Tester (Yii2 Test Generator Code) with Person Relationship with PostgreSQL

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

[](#installation)

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

Either run

```
composer require allankaio/giitester
```

or add

```
"allankaio/giitester": "^1"

```

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

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

[](#configuration)

1. Then you must add this parameter to config\\params.php.

```
'testepath' => 'tests'
```

3. Then you must add this code at your config\\web.php.

```
'components'=>[
	'user' => [
		'class' => 'webvimark\modules\UserManagement\components\UserConfig',

		// Comment this if you don't want to record user logins
		'on afterLogin' => function($event) {
				\webvimark\modules\UserManagement\models\UserVisitLog::newVisitor($event->identity->id);
			}
	],
],

'modules' => [
      'user-management' => [
            'class' => 'webvimark\modules\UserManagement\UserManagementModule',
		'on beforeAction'=>function(yii\base\ActionEvent $event) {
                  if ( $event->action->uniqueId == 'user-management/auth/login' ){
                        $event->action->controller->layout = 'loginLayout.php';
                  };
            },
	],
      'gridview' => [
          'class' => '\kartik\grid\Module',
      ],
      'datecontrol' => [
          'class' => '\kartik\datecontrol\Module',
      ],
  ],
```

See gridview settings on

See datecontrol settings on

3. In your config/console.php (this is needed for migrations and working with console)

```
'modules'=>[
	'user-management' => [
		'class' => 'webvimark\modules\UserManagement\UserManagementModule',
	        'controllerNamespace'=>'vendor\webvimark\modules\UserManagement\controllers', // To prevent yii help from crashing
	],
],
```

4. Run migrations

```
./yii migrate --migrationPath=vendor/webvimark/module-user-management/migrations/
```

See user-management settings on

Usage :
-------

[](#usage-)

Go to your gii tools, and notice the new EasYii Gii Generator for models &amp; CRUD

Features
========

[](#features)

Model :
-------

[](#model-)

1. Generate representation columns(RepresentingColumn)
2. Generate CPF/CNPJ validator
3. Generate e-mail validator
4. Specify your label name / attribute for foreign keys and fields based on the DBMS comment

CRUD :
------

[](#crud-)

1. Generate all CRUD with wildcard (\*) of table
2. Generate related input output
3. Export to various formats
4. Expandable / collapsible row at index grid view for related data
5. Views with or without TabularForms
6. Custom fields for dates (DateControl)
7. Custom fields for foreign keys (Select2 and RepresentingColumn)
8. Exclusion constraint based on DBMS actions
9. Addition of the security module (User management module for Yii 2)
10. Custom fields for input file (FileInput)
11. View foreign key data based on RepresentingColumn

Tests :
-------

[](#tests-)

1. Generate all tests of a table
2. Generate tests for CRUD
3. Generate tests for data types
4. Generate tests for Email/CPF

Migration Generator :
---------------------

[](#migration-generator-)

1. Generate migration from your database structure (based on : )

I'm open for any improvement

Thanks To
=========

[](#thanks-to)

1. Jiwanndaru () for creating the tradition
2. kartik-v () for most of widgets
3. schmunk42 () for bootstrap &amp; model base &amp; extension
4. mdmunir () for JsBlock &amp; Migration Generator (from )
5. mootensai () for yii2-enhanced-gii ()
6. thtmorais ()
7. petersonsilvadejesus ()

Developers
==========

[](#developers)

2. Allan Kaio Brito Macedo ()

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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/2242b51fbca098839137624c64f493384c3d912731923063640196234c9b7426?d=identicon)[AllanKaio21](/maintainers/AllanKaio21)

---

Top Contributors

[![AllanKaio21](https://avatars.githubusercontent.com/u/75497513?v=4)](https://github.com/AllanKaio21 "AllanKaio21 (25 commits)")

### Embed Badge

![Health badge](/badges/allankaio-giitester/health.svg)

```
[![Health](https://phpackages.com/badges/allankaio-giitester/health.svg)](https://phpackages.com/packages/allankaio-giitester)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M541](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M208](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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