vnukga/yii2-migration-generator
Composer 安装命令:
composer require vnukga/yii2-migration-generator
包简介
Allows to generate migrations from scheme inexternal sources, such as Google Spreadsheets, using console.
README 文档
README
Allows to generate migrations from scheme inexternal sources, such as Google Spreadsheets, using console.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist vnukga/yii2-migration-generator "*"
or add
"vnukga/yii2-migration-generator": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, add the following code to "controllerMap" section in 'console/config/main.php' :
'migrate-generator' => [
'class' => 'vnukga\migrationGenerator\MigrateController',
'sourceClass' => 'vnukga\migrationGenerator\sources\google\GoogleApiSheet',
'sourceId' => 'Your Google-Sheet ID',
'useGii' => true, //this allows you to generate models and GRUD's automatically
'modelNamespace' => 'common\models',
'keyPath' => 'Your path to a folder with credentials file' //__DIR__ . '/../../google'
]
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-07-04