2017 © Pedro Peláez
 

yii2-extension yii2-gii

The Gii extension for the Yii framework

image

yiisoft/yii2-gii

The Gii extension for the Yii framework

  • Monday, July 23, 2018
  • by cebe
  • Repository
  • 36 Watchers
  • 132 Stars
  • 3,806,171 Installations
  • PHP
  • 696 Dependents
  • 0 Suggesters
  • 157 Forks
  • 85 Open issues
  • 15 Versions
  • 7 % Grown

The README.md

, (*1)

Gii Extension for Yii 2


This extension provides a Web-based code generator, called Gii, for Yii framework 2.0 applications. You can use Gii to quickly generate models, forms, modules, CRUD, etc., (*2)

For license information check the LICENSE-file., (*3)

Documentation is at docs/guide/README.md., (*4)

Latest Stable Version Total Downloads Build Status, (*5)

Installation

The preferred way to install this extension is through composer., (*6)

Either run, (*7)

php composer.phar require --dev --prefer-dist yiisoft/yii2-gii

or add, (*8)

"yiisoft/yii2-gii": "~2.1.0"

to the require-dev section of your composer.json file., (*9)

Usage

Once the extension is installed, simply modify your application configuration as follows:, (*10)

return [
    'bootstrap' => ['gii'],
    'modules' => [
        'gii' => [
            'class' => 'yii\gii\Module',
        ],
        // ...
    ],
    // ...
];

You can then access Gii through the following URL:, (*11)

http://localhost/path/to/index.php?r=gii

or if you have enabled pretty URLs, you may use the following URL:, (*12)

http://localhost/path/to/index.php/gii

Using the same configuration for your console application, you will also be able to access Gii via command line as follows,, (*13)

# change path to your application's base path
cd path/to/AppBasePath

# show help information about Gii
yii help gii

# show help information about the model generator in Gii
yii help gii/model

# generate City model from city table
yii gii/model --tableName=city --modelClass=City

The Versions

23/07 2018

dev-sol

dev-sol

The Gii extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 gii code generator

11/07 2018

dev-master

9999999-dev

The Gii extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 gii code generator

12/06 2018

2.1.x-dev

2.1.9999999.9999999-dev

The Gii extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 gii code generator

03/05 2018

2.0.7

2.0.7.0

The Gii extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 gii code generator

23/12 2017

2.0.6

2.0.6.0

The Gii extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 gii code generator

18/03 2016

2.0.5

2.0.5.0

The Gii extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 gii code generator

11/05 2015

2.0.4

2.0.4.0

The Gii extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 gii code generator

24/04 2015

dev-travis

dev-travis

The Gii extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 gii code generator

01/03 2015

2.0.3

2.0.3.0

The Gii extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 gii code generator

11/01 2015

2.0.2

2.0.2.0

The Gii extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 gii code generator

07/12 2014

2.0.1

2.0.1.0

The Gii extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 gii code generator

12/10 2014

2.0.0

2.0.0.0

The Gii extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 gii code generator

28/09 2014

2.0.0-rc

2.0.0.0-RC

The Gii extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 gii code generator

13/04 2014

2.0.0-beta

2.0.0.0-beta

The Gii extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 gii code generator

01/12 2013

2.0.0-alpha

2.0.0.0-alpha

The Gii extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

gii yii code generator