wisekinger / yii2-xgii
The xGii extension for the Yii framework
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Type:yii2-extension
Requires
- bower-asset/typeahead.js: 0.10.* | ~0.11.0
- phpspec/php-diff: >=1.0.2
- yiisoft/yii2: ~2.0.13
- yiisoft/yii2-bootstrap: ~2.0.0
This package is not auto-updated.
Last update: 2025-04-12 02:01:09 UTC
README
A Extension for Yii2
在gii基础上新增代码优先模式,基于表单填写的数据表名称以及字段,自动生成模型代码文件,同时在数据库中创建相同构架的数据表。
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