dev-master
9999999-dev
MIT
The Requires
- php >=5.4.0
- nullref/yii2-core >=0.0.3
- nullref/yii2-useful >=0.0.3
- rmrevin/yii2-fontawesome >=2.16.0
- yiisoft/yii2 >=2.0.13
- yiisoft/yii2-queue >=2.0.0
The Development Requires
WIP, (*1)
Module for processing documents, (*2)
This module allows you create own document's workers with few levels of customization: - worker code - worker instance - document instance, (*3)
All workers run under default yii2 queue, (*4)
The preferred way to install this extension is through composer., (*5)
Either run, (*6)
php composer.phar require --prefer-dist nullref/yii2-documents "*"
or add, (*7)
"nullref/yii2-documents": "*"
to the require section of your composer.json
file., (*8)
Then you have run console command for install this module and run migrations:, (*9)
php yii module/install nullref/yii2-documents
This command will add current module to config/installed_modules.php file., (*10)
This file need be included in application config., (*11)
If you don't want to use module/install
command that you could add module to you application config manually:, (*12)
'modules' => [ //... 'documents' => [ 'class' => nullref\documents\Module::class, ], //... ],
Than you need run, (*13)
php yii modules-migrate --moduleId=documents
Also, you have install yiisoft/yii2-queue following it own manual., (*14)
After installation you need create own classes that implement export/import logic., (*15)
For example you can check demo folder., (*16)
After creating document worker you need register it in module config:, (*17)
'documents' => [ 'class' => nullref\documents\Module::class, 'importers' => [ // List of importer classes 'catalog' => [ 'class' => \app\components\importers\CatalogImporter::class, ], ], 'exporters' => [ // List of exporter classes 'total' => [ 'class' => app\components\exporters\TotalExporter::class, ], ], ],
Please, check docs and demo for more info., (*18)
And translations, (*19)
MIT