wisekinger/yii2-xgii

The xGii extension for the Yii framework

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Type:yii2-extension

dev-master / 2.0.x-dev 2018-11-15 13:17 UTC

This package is not auto-updated.

Last update: 2024-04-12 21:20:36 UTC


README

A Extension for Yii2


在gii基础上新增代码优先模式,基于表单填写的数据表名称以及字段,自动生成模型代码文件,同时在数据库中创建相同构架的数据表。

Latest Stable Version Total Downloads Latest Unstable Version License

packages: https://packagist.org/packages/wisekinger/yii2-xgii

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --dev wisekinger/yii2-xgii

or add

"wisekinger/yii2-xgii": "2.0.x-dev"

to the require section of your composer.json file.

Useage

add code below to your config section

    $config['bootstrap'][] = 'xgii';
    $config['modules']['xgii'] = [
        'class' => 'yii\xgii\Module',
    ];

You can then access xGii through the following URL:

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

or if you have enabled pretty URLs, you may use the following URL:

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