webtoolsnz / yii2-importer
Yii2 CSV ActiveRecord importer
Installs: 80 679
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 10
Forks: 0
Open Issues: 1
Type:yii2-extension
Requires
- league/csv: ^9.0
- yiisoft/yii2: ^2.0.38
Requires (Dev)
- phpunit/phpunit: ~4.0
README
composer require webtoolsnz/yii2-importer
config/console.php
[ 'bootstrap' => ['importer'], 'controllerMap' => [ 'importer' => [ 'class' => 'backend\commands\ImporterController', ], ], 'modules' => [ 'importer' => [ 'class' => 'webtoolsnz\importer\Module', ], ], ]
config/web.php
[ 'bootstrap' => ['importer'], 'modules' => [ 'importer' => [ 'class' => 'webtoolsnz\importer\Module', ], ], ]
controllers/ImportController.php
<?php class ImportController extends \webtoolsnz\importer\ImporterController { }
cp vendor/webtoolsnz/yii2-importer/src/migrations/* migrations/
./yii migrate